mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
parent
2d9f4a0194
commit
072b2dd9c5
1 changed files with 0 additions and 7 deletions
|
|
@ -420,13 +420,6 @@ export function authRouter() {
|
|||
|
||||
// set auth cookie in response header
|
||||
await setAuthInCookie({ uid: user.id }, res)
|
||||
const cookie = res.get('cookie')
|
||||
if (!cookie) {
|
||||
return res.redirect(
|
||||
`${env.client.url}/email-login?errorCodes=${LoginErrorCode.AuthFailed}`
|
||||
)
|
||||
}
|
||||
res.setHeader('set-cookie', cookie)
|
||||
await handleSuccessfulLogin(req, res, user, false)
|
||||
} catch (e) {
|
||||
logger.info('email-login exception:', e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue