Skip to content

Commit

Permalink
Typo and some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Martii committed Dec 9, 2021
1 parent d5c8610 commit e8a9760
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,8 @@ exports.callback = function (aReq, aRes, aNext) {
var doneUri = aReq.session.user ? '/user/preferences' : '/';
var SITEKEY = process.env.HCAPTCHA_SITE_KEY;


if (SITEKEY && !knownUser && !captchaToken) {
aRes.redirect('/login?fail');
aRes.redirect('/login?authfail');
return;
}

Expand Down

0 comments on commit e8a9760

Please sign in to comment.