mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-26 21:56:35 +02:00
fixed 1495
This commit is contained in:
@@ -176,6 +176,9 @@ Controllers.login = function(req, res, next) {
|
||||
data.token = res.locals.csrf_token;
|
||||
data.showResetLink = emailersPresent;
|
||||
data.allowLocalLogin = meta.config.allowLocalLogin === undefined || parseInt(meta.config.allowLocalLogin, 10) === 1;
|
||||
if (req.query.next) {
|
||||
data.previousUrl = req.query.next;
|
||||
}
|
||||
|
||||
res.render('login', data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user