mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
updated deprecation notice for social network sso icons
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user