Merge branch 'pr452'
This commit is contained in:
commit
198a67bbd2
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ module.exports.login = (req, res, next) => {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
if (!user) {
|
if (!user) {
|
||||||
|
log.warn('auth', `[client ${req.ip}] authentication failure`);
|
||||||
req.flash('danger', info && info.message || _('Failed to authenticate user'));
|
req.flash('danger', info && info.message || _('Failed to authenticate user'));
|
||||||
return res.redirect('/users/login' + (req.body.next ? '?next=' + encodeURIComponent(req.body.next) : ''));
|
return res.redirect('/users/login' + (req.body.next ? '?next=' + encodeURIComponent(req.body.next) : ''));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue