It could work, but I always say to stop, build, start instead because it's less likely to cause an issue.
[Solved] Facebook SSO plugin error
-
I get this error when trying to login using the facebook auth plugin:
/home/ubuntu/nodebb/node_modules/redis/index.js:535
throw err;
^
ReferenceError: user is not defined
at /home/ubuntu/nodebb/node_modules/nodebb-plugin-sso-facebook/library.js:71:5
at /home/ubuntu/nodebb/node_modules/nodebb-plugin-sso-facebook/library.js:97:4
at /home/ubuntu/nodebb/src/database/redis.js:258:4
at /home/ubuntu/nodebb/src/database/redis.js:274:4
at try_callback (/home/ubuntu/nodebb/node_modules/redis/index.js:532:9)
at RedisClient.return_reply (/home/ubuntu/nodebb/node_modules/redis/index.js:614:13)
at ReplyParser.<anonymous> (/home/ubuntu/nodebb/node_modules/redis/index.js:266:14)
at ReplyParser.EventEmitter.emit (events.js:95:17)
at ReplyParser.send_reply (/home/ubuntu/nodebb/node_modules/redis/lib/parser/javascript.js:300:10)
at ReplyParser.execute (/home/ubuntu/nodebb/node_modules/redis/lib/parser/javascript.js:211:22) -
Hey @Henrock -- thanks for the bug report, I'll look into it shortly.
Edit: Give it another try (
npm update nodebb-plugin-sso-facebook
). The latest version, 0.1.0-2, should fix up the issue. -
Worked like a charm.
Thanks! -
Getting similar error with the twitter plugin now:
/home/ubuntu/nodebb/node_modules/redis/index.js:535
throw err;
^
ReferenceError: user is not defined
at /home/ubuntu/nodebb/node_modules/nodebb-plugin-sso-twitter/library.js:62:5
at /home/ubuntu/nodebb/node_modules/nodebb-plugin-sso-twitter/library.js:92:4
at /home/ubuntu/nodebb/src/database/redis.js:258:4
at /home/ubuntu/nodebb/src/database/redis.js:274:4
at try_callback (/home/ubuntu/nodebb/node_modules/redis/index.js:532:9)
at RedisClient.return_reply (/home/ubuntu/nodebb/node_modules/redis/index.js:614:13)
at ReplyParser.<anonymous> (/home/ubuntu/nodebb/node_modules/redis/index.js:266:14)
at ReplyParser.EventEmitter.emit (events.js:95:17)
at ReplyParser.send_reply (/home/ubuntu/nodebb/node_modules/redis/lib/parser/javascript.js:300:10)
at ReplyParser.execute (/home/ubuntu/nodebb/node_modules/redis/lib/parser/javascript.js:211:22) -
@Henrock Fixed, sorry about that!! Logins worked, but new user creation threw the error, looks like I didn't test it thoroughly enough!
-
Awesome!