User Registration and Login (SSO by default)

Unsolved NodeBB Plugins
  • Prioritizing SSO seems to make a lot of sense. Simplifies and speeds up authentication and encourages user registration by replacing typing in email/password with simple click/tap and accept.


    It would be nice to have a switch to reverse Email/SSO priority and a link to reveal (unhide) email registration. There is a solution pointed out by @PitaJ but using CSS will not allow auto-translation and may be uncomfortable for some.

Suggested Topics

  • 6 Votes
    14 Posts

    @baris just thinking about this, and perhaps it's a good idea to let users know when they've achieved a new level with either a notification message, or something else.

    Gamification is an important aspect of how forums work with reputation levels being a form of kudos for participants and some form of acknowledgement when a member reaches a specific level is nice to have rather than just silently taking place.

    It's mostly for acknowledgement of achievement.

  • 0 Votes
    1 Posts


    I am attempting to use the nodebb-plugin-sso-oauth plugin to implement SSO with CAS into my forum.

    My CAS is using Oauth2. I have POST methods with urls for request code (authorization), request access token, and request profile.

    I have installed the plugin and set up nconf to use my constants.

    I activated the plugin and refreshed my nodebb forum.

    It is now crashing upon starting and I get the following error.

    24/7 00:37:39 [29650] - error: message=Cannot read property 'length' of undefined, stack=TypeError: Cannot read property 'length' of undefined
    at pathtoRegexp (/root/nodebb/node_modules/path-to-regexp/index.js:63:49)
    at new Layer (/root/nodebb/node_modules/express/lib/router/layer.js:45:17)
    at Function.use (/root/nodebb/node_modules/express/lib/router/index.js:464:17)
    at Function.<anonymous> (/root/nodebb/node_modules/express/lib/application.js:220:21)
    at Array.forEach (<anonymous>)
    at Function.use (/root/nodebb/node_modules/express/lib/application.js:217:7)
    at module.exports (/root/nodebb/src/routes/index.js:139:7)
    at /root/nodebb/src/webserver.js:99:4
    at fn (/root/nodebb/node_modules/async/lib/async.js:746:34)
    at /root/nodebb/node_modules/async/lib/async.js:1213:16
    at /root/nodebb/node_modules/async/lib/async.js:166:37
    at /root/nodebb/node_modules/async/lib/async.js:706:43
    at /root/nodebb/node_modules/async/lib/async.js:167:37
    at Immediate._onImmediate (/root/nodebb/node_modules/async/lib/async.js:1206:34)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)

    My guess is that for some reason, path is being passed as undefined.

    I am stuck and in need of help.

    Please provide feedback or recommendations for how I can implement CAS Single Sign On into my nodebb forum.

    Thank you,

  • 0 Votes
    5 Posts

    @pichalite said in Is there an option that users can hide a category from the forum?:

    @MJ well... you are trying to do it the harder way.

    Yes, I know 😛 people tell me everyday haha.

    But maybe are there more people who want an option for choose if they want to see adult content or not. 🙂

  • 0 Votes
    4 Posts

    Nice with old threads popping up 😉

  • 0 Votes
    4 Posts

    @limker said:

    Looks like your plugin will reject any user with a non-gmail account. Maybe you should check with a list of valid email domains, i'm sure you can find one easily on google.

    Actually I think this is a bad idea. Because anyone can run their own mailserver.

    Just check if the email contains an @ is enough for valid email testing. Most regex solutions will fail on stuff like:

    "this email contains spaces" which is a valid email address. An email address may even contain a @ character in the local part in some odd configurations.