1
0
Fork 0
mirror of synced 2024-12-21 22:21:07 -05:00

fix auth query

This commit is contained in:
Ilya Sosnovsky 2022-11-14 17:45:12 +03:00
parent 87201b5309
commit 019ac6b67e

View file

@ -373,9 +373,9 @@ func getUserOtpSecret(username string) {
func authUser(username, password, totp string) {
row := getDb().QueryRow("select * from users where username = $1", username)
row := getDb().QueryRow("SELECT id, username, paasword, 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)
err := row.Scan(&u.id, &u.name, &u.password, &u.revoked, &u.deleted, &u.secret, &u.appConfigured)
checkErr(err)
if userIsActive(username) {