From 2f9fd620d788c0fff5ee15d63e4c610e39fb3c02 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 18 Jul 2014 11:09:33 -0400 Subject: [PATCH] fixed #1849 --- src/routes/authentication.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/routes/authentication.js b/src/routes/authentication.js index 1cd4331fb4..0baafecef8 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -148,6 +148,17 @@ for (var i in login_strategies) { if (login_strategies.hasOwnProperty(i)) { var strategy = login_strategies[i]; + + /* + Backwards compatibility block for v0.6.0 + Remove this upon release of v0.6.0-1 + Ref: nodebb/nodebb#1849 + */ + if (strategy.icon.slice(0, 3) !== 'fa-') { + strategy.icon = 'fa-' + strategy.icon + '-square'; + } + /* End backwards compatibility block */ + if (strategy.url) { app.get(strategy.url, passport.authenticate(strategy.name, { scope: strategy.scope