Merge pull request #3197 from Human-Connection/update-user-at-password-reset

fix: Update user.updatedAt when password is reset
This commit is contained in:
mattwr18 2020-03-02 16:18:25 +01:00 committed by GitHub
commit 0cdae364b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ export default {
WHERE duration.between(passwordReset.issuedAt, datetime()).days <= 0 AND passwordReset.usedAt IS NULL
SET passwordReset.usedAt = datetime()
SET user.encryptedPassword = $encryptedNewPassword
SET user.updatedAt = toString(datetime())
RETURN passwordReset
`,
{