mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
started work on #2082
This commit is contained in:
@@ -123,7 +123,7 @@ Controllers.login = function(req, res, next) {
|
||||
|
||||
data.alternate_logins = num_strategies > 0;
|
||||
data.authentication = login_strategies;
|
||||
data.token = res.locals.csrf_token;
|
||||
data.token = req.csrfToken();
|
||||
data.showResetLink = emailersPresent;
|
||||
data.allowLocalLogin = meta.config.allowLocalLogin === undefined || parseInt(meta.config.allowLocalLogin, 10) === 1;
|
||||
data.allowRegistration = meta.config.allowRegistration;
|
||||
@@ -152,7 +152,7 @@ Controllers.register = function(req, res, next) {
|
||||
|
||||
data.authentication = login_strategies;
|
||||
|
||||
data.token = res.locals.csrf_token;
|
||||
data.token = req.csrfToken();
|
||||
data.minimumUsernameLength = meta.config.minimumUsernameLength;
|
||||
data.maximumUsernameLength = meta.config.maximumUsernameLength;
|
||||
data.minimumPasswordLength = meta.config.minimumPasswordLength;
|
||||
|
||||
Reference in New Issue
Block a user