Skip to content
Permalink
Browse files
Changed login redirect to secure and not to createcv
  • Loading branch information
sultanh5 committed Jul 21, 2020
1 parent 80605e2 commit 949a9d1d44613d42f75f37438eaa87d3ddfd7fbe
Showing 1 changed file with 1 addition and 1 deletion.
@@ -68,7 +68,7 @@ router.post('/login', koaBody, async ctx => {
await user.login(body.user, body.pass)
ctx.session.authorised = true
ctx.session.user = body.user
const referrer = body.referrer || '/secure/createcv'
const referrer = body.referrer || '/secure'
return ctx.redirect(`${referrer}?msg=you are now logged in...`)
} catch(err) {
ctx.hbs.msg = err.message

0 comments on commit 949a9d1

Please sign in to comment.