From d117a035d27a2212a81e25a27132469d672417ce Mon Sep 17 00:00:00 2001 From: Alexandre Boucey Date: Tue, 21 May 2024 14:22:13 +0200 Subject: [PATCH] fix change password sql query --- db/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/account.go b/db/account.go index 9ac1ec2..d852a03 100644 --- a/db/account.go +++ b/db/account.go @@ -51,7 +51,7 @@ func AddAccountSession(username string, token []byte) error { } func UpdateAccountPassword(uuid, key, salt []byte) error { - _, err := handle.Exec("UPDATE accounts SET (hash, salt) VALUES (?, ?) WHERE uuid = ?", key, salt, uuid) + _, err := handle.Exec("UPDATE accounts SET hash = ?, salt = ? WHERE uuid = ?", key, salt, uuid) if err != nil { return err }