Merge pull request #2184 from omnivore-app/fix/rm-auth-cookie-on-reset

Clear auth cookie when password reset is triggered
This commit is contained in:
Jackson Harper 2023-05-11 17:33:16 +08:00 committed by GitHub
commit cbdd4f0a71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -600,6 +600,8 @@ export function authRouter() {
)
}
res.clearCookie('auth')
res.clearCookie('pendingUserAuth')
res.redirect(`${env.client.url}/auth/reset-sent`)
} catch (e) {
logger.info('forgot-password exception:', e)