This commit is contained in:
Barış Soner Uşaklı
2015-02-19 13:24:06 -05:00
parent 97c0b130ca
commit da305210e2
5 changed files with 24 additions and 5 deletions

View File

@@ -70,6 +70,7 @@ Controllers.login = function(req, res, next) {
data.showResetLink = emailersPresent;
data.allowLocalLogin = parseInt(meta.config.allowLocalLogin, 10) === 1;
data.allowRegistration = parseInt(meta.config.allowRegistration, 10) === 1;
data.allowLoginWith = '[[login:' + (meta.config.allowLoginWith || 'username-email') + ']]';
data.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[global:login]]'}]);
data.error = req.flash('error')[0];