fixed 1495

This commit is contained in:
Julian Lam
2014-05-07 11:46:24 -04:00
parent 883978007d
commit b56df975e0
6 changed files with 29 additions and 9 deletions

View File

@@ -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);
};