mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-28 22:55:39 -04:00
owner_reset_password.go: use ownerHex in SELECT
This commit is contained in:
@ -18,8 +18,9 @@ func ownerResetPassword(resetHex string, password string) error {
|
||||
|
||||
statement := `
|
||||
UPDATE owners SET passwordHash=$1
|
||||
WHERE email IN (
|
||||
SELECT email FROM ownerResetHexes
|
||||
WHERE ownerHex = (
|
||||
SELECT ownerHex
|
||||
FROM ownerResetHexes
|
||||
WHERE resetHex=$2
|
||||
);
|
||||
`
|
||||
|
Reference in New Issue
Block a user