Reset password is a directory now

This commit is contained in:
Jackson Harper 2022-07-26 15:57:40 -07:00
parent 65689ca538
commit 779ff1f020

View file

@ -642,12 +642,12 @@ export function authRouter() {
logger.info('reset-password exception:', e)
if (e instanceof jwt.TokenExpiredError) {
return res.redirect(
`${env.client.url}/auth/reset-password?errorCodes=TOKEN_EXPIRED`
`${env.client.url}/auth/reset-password/?errorCodes=TOKEN_EXPIRED`
)
}
res.redirect(
`${env.client.url}/auth/reset-password?errorCodes=INVALID_TOKEN`
`${env.client.url}/auth/reset-password/?errorCodes=INVALID_TOKEN`
)
}
}