This commit is contained in:
parent
901af1c43c
commit
567981c6b5
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ impl Sessions for User {
|
||||||
/// Generate a new API Key session
|
/// Generate a new API Key session
|
||||||
async fn api_key(&self, name: &str) -> Session {
|
async fn api_key(&self, name: &str) -> Session {
|
||||||
sqlx::query_as(
|
sqlx::query_as(
|
||||||
"INSERT INTO user_session (token, \"user\", kind, name) VALUES ($1, $2, $3) RETURNING *",
|
"INSERT INTO user_session (token, \"user\", kind, name) VALUES ($1, $2, $3, $4) RETURNING *",
|
||||||
)
|
)
|
||||||
.bind(gen_token(64))
|
.bind(gen_token(64))
|
||||||
.bind(&self.username)
|
.bind(&self.username)
|
||||||
|
|
Loading…
Add table
Reference in a new issue