mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
commit
cbdd4f0a71
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue