Skip to content

Node.js based forum software built for the modern web

updated deprecation notice for social network sso icons

Julian Lam14d7461252bb
diff --git a/src/routes/authentication.js b/src/routes/authentication.js
index 0baafecef8..99a7986c0b 100644
--- a/src/routes/authentication.js
+++ b/src/routes/authentication.js
@@ -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);