owner_reset_password.go: use ownerHex in SELECT

This commit is contained in:
Adhityaa Chandrasekar 2019-02-19 00:10:04 -05:00
parent ca797cd165
commit 0b78e9e70c

View File

@ -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
);
`