mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
removed the span size
This commit is contained in:
@@ -171,18 +171,7 @@ Controllers.login = function(req, res, next) {
|
||||
num_strategies = login_strategies.length,
|
||||
emailersPresent = plugins.hasListeners('action:email.send');
|
||||
|
||||
if (num_strategies === 0) {
|
||||
data = {
|
||||
'login_window:spansize': 'col-md-12',
|
||||
'alternate_logins': false
|
||||
};
|
||||
} else {
|
||||
data = {
|
||||
'login_window:spansize': 'col-md-6',
|
||||
'alternate_logins': true
|
||||
};
|
||||
}
|
||||
|
||||
data.alternate_logins = num_strategies > 0;
|
||||
data.authentication = login_strategies;
|
||||
data.token = res.locals.csrf_token;
|
||||
data.showResetLink = emailersPresent;
|
||||
|
||||
Reference in New Issue
Block a user