1
0
Fork 0
mirror of synced 2024-11-22 00:55:34 -05:00

fix auth query

This commit is contained in:
Ilya Sosnovsky 2022-11-14 18:29:12 +03:00
parent 019ac6b67e
commit e00a826faa

View file

@ -373,7 +373,7 @@ func getUserOtpSecret(username string) {
func authUser(username, password, totp 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{} u := User{}
err := row.Scan(&u.id, &u.name, &u.password, &u.revoked, &u.deleted, &u.secret, &u.appConfigured) err := row.Scan(&u.id, &u.name, &u.password, &u.revoked, &u.deleted, &u.secret, &u.appConfigured)
checkErr(err) checkErr(err)