fix auth query
This commit is contained in:
parent
019ac6b67e
commit
e00a826faa
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ func getUserOtpSecret(username string) {
|
|||
|
||||
func authUser(username, password, totp string) {
|
||||
|
||||
row := getDb().QueryRow("SELECT id, username, paasword, revoked, deleted, secret, app_configured FROM users WHERE username = $1", username)
|
||||
row := getDb().QueryRow("SELECT id, username, password, revoked, deleted, secret, app_configured FROM users WHERE username = $1", username)
|
||||
u := User{}
|
||||
err := row.Scan(&u.id, &u.name, &u.password, &u.revoked, &u.deleted, &u.secret, &u.appConfigured)
|
||||
checkErr(err)
|
||||
|
|
Loading…
Reference in a new issue