owner_reset_password.go: use ownerHex in SELECT
This commit is contained in:
parent
ca797cd165
commit
0b78e9e70c
@ -18,8 +18,9 @@ func ownerResetPassword(resetHex string, password string) error {
|
|||||||
|
|
||||||
statement := `
|
statement := `
|
||||||
UPDATE owners SET passwordHash=$1
|
UPDATE owners SET passwordHash=$1
|
||||||
WHERE email IN (
|
WHERE ownerHex = (
|
||||||
SELECT email FROM ownerResetHexes
|
SELECT ownerHex
|
||||||
|
FROM ownerResetHexes
|
||||||
WHERE resetHex=$2
|
WHERE resetHex=$2
|
||||||
);
|
);
|
||||||
`
|
`
|
||||||
|
Loading…
Reference in New Issue
Block a user