updated deprecation notice for social network sso icons

v1.18.x
Julian Lam 11 years ago
parent 2f9fd620d7
commit 14d7461252

@ -145,6 +145,7 @@
winston.error('filter:auth.init - plugin failure');
}
var deprecList = [];
for (var i in login_strategies) {
if (login_strategies.hasOwnProperty(i)) {
var strategy = login_strategies[i];
@ -155,6 +156,7 @@
Ref: nodebb/nodebb#1849
*/
if (strategy.icon.slice(0, 3) !== 'fa-') {
deprecList.push(strategy.name);
strategy.icon = 'fa-' + strategy.icon + '-square';
}
/* End backwards compatibility block */
@ -172,6 +174,19 @@
}
}
/*
Backwards compatibility block for v0.6.0
Remove this upon release of v0.6.0-1
Ref: nodebb/nodebb#1849
*/
if (deprecList.length) {
winston.warn('[plugins] Deprecation notice: SSO plugins should now pass in the full fontawesome icon name (e.g. "fa-facebook-o"). Please update the following plugins:');
for(var x=0,numDeprec=deprecList.length;x<numDeprec;x++) {
process.stdout.write(' * ' + deprecList[x] + '\n');
}
}
/* End backwards compatibility block */
app.post('/logout', logout);
app.post('/register', register);
app.post('/login', login);

Loading…
Cancel
Save