Skip to content

Commit

Permalink
[reveiled by automation] authentication failure - do not "redirect", …
Browse files Browse the repository at this point in the history
…but "render" instead, so can send 401 and message #22
  • Loading branch information
ohad.r committed Aug 13, 2024
1 parent e82248a commit b0ed610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/user-action-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ export function config(config: {
req.session.error = 'Authentication failed, please check your '
+ ' username and password.';
res
.status(401)
.append(ERR_MSG, 'authentication failed') //add to headers
.redirect('/login');
.render('login');
return;
}

Expand Down

0 comments on commit b0ed610

Please sign in to comment.