From eaaa713f9aa3649913250a071794d6ed31b72536 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 25 May 2015 11:58:46 -0400 Subject: [PATCH 1/2] fixed ACP page --- library.js | 13 ++++--------- templates/{sso => admin/plugins}/qq/admin.tpl | 0 2 files changed, 4 insertions(+), 9 deletions(-) rename templates/{sso => admin/plugins}/qq/admin.tpl (100%) diff --git a/library.js b/library.js index 577720d..8fbbb4a 100755 --- a/library.js +++ b/library.js @@ -13,7 +13,7 @@ 'name': "qq", 'admin': { 'icon': 'fa-qq', - 'route': '/qq' + 'route': '/plugins/qq' } }); @@ -26,11 +26,6 @@ clientSecret: meta.config['social:qq:secret'], callbackURL: module.parent.require('nconf').get('url') + '/auth/qq/callback' },function(token, tokenSecret, profile, done) { - - console.log(token); - console.log(tokenSecret); - console.log(profile); - var email = '' if(profile.emails && profile.emails.length){ email = profile.emails[0].value @@ -129,12 +124,12 @@ }; function renderAdmin(req, res, callback) { - res.render('sso/qq/admin', {}); + res.render('admin/plugins/qq/admin', {}); } QQ.init = function(data, callback) { - data.router.get('/admin/qq', data.middleware.admin.buildHeader, renderAdmin); - data.router.get('/api/qq', renderAdmin); + data.router.get('/admin/plugins/qq', data.middleware.admin.buildHeader, renderAdmin); + data.router.get('/api/admin/plugins/qq', renderAdmin); callback(); }; diff --git a/templates/sso/qq/admin.tpl b/templates/admin/plugins/qq/admin.tpl similarity index 100% rename from templates/sso/qq/admin.tpl rename to templates/admin/plugins/qq/admin.tpl From 01e4fac9eb9f689eea33786314b76092aae0be82 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 25 May 2015 11:59:31 -0400 Subject: [PATCH 2/2] added nbbpm minver --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index b69897e..2e05a44 100755 --- a/package.json +++ b/package.json @@ -25,5 +25,8 @@ }, "dependencies": { "passport-qq": "~0.0.3" + }, + "nbbpm": { + "compatibility": ">=0.6.0 <=0.7.0" } }