mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 01:45:47 +01:00
incorrect url was being passed for callback - twitter and g+
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
passport.use(new passportTwitter({
|
passport.use(new passportTwitter({
|
||||||
consumerKey: meta.config['social:twitter:key'],
|
consumerKey: meta.config['social:twitter:key'],
|
||||||
consumerSecret: meta.config['social:twitter:secret'],
|
consumerSecret: meta.config['social:twitter:secret'],
|
||||||
callbackURL: 'auth/twitter/callback'
|
callbackURL: nconf.get('url') + 'auth/twitter/callback'
|
||||||
}, function(token, tokenSecret, profile, done) {
|
}, function(token, tokenSecret, profile, done) {
|
||||||
login_module.loginViaTwitter(profile.id, profile.username, profile.photos, function(err, user) {
|
login_module.loginViaTwitter(profile.id, profile.username, profile.photos, function(err, user) {
|
||||||
if (err) {
|
if (err) {
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
passport.use(new passportGoogle({
|
passport.use(new passportGoogle({
|
||||||
clientID: meta.config['social:google:id'],
|
clientID: meta.config['social:google:id'],
|
||||||
clientSecret: meta.config['social:google:secret'],
|
clientSecret: meta.config['social:google:secret'],
|
||||||
callbackURL: 'auth/google/callback'
|
callbackURL: nconf.get('url') + 'auth/google/callback'
|
||||||
}, function(accessToken, refreshToken, profile, done) {
|
}, function(accessToken, refreshToken, profile, done) {
|
||||||
login_module.loginViaGoogle(profile.id, profile.displayName, profile.emails[0].value, function(err, user) {
|
login_module.loginViaGoogle(profile.id, profile.displayName, profile.emails[0].value, function(err, user) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user