SSO with Twitter



  • When SSO using twitter, if user name already taken, UI will show plain JSON response

    {
    "error": "Username taken!"
    }

    the UI and it's message doesn't seems user friendly, perhaps it can be improved in the future

    server side message:
    Error: Username taken!
    at C:\Users\sam\git\Node.js\nodebb\src\user.js:56:24
    at C:\Users\sam\git\Node.js\nodebb\src\user.js:783:4
    at C:\Users\sam\git\Node.js\nodebb\src\database\mongo.js:306:4
    at C:\Users\sam\git\Node.js\nodebb\src\database\mongo.js:340:4
    at C:\Users\sam\git\Node.js\nodebb\node_modules\mongodb\lib\mongodb\collecti
    on\query.js:147:5
    at Cursor.nextObject (C:\Users\sam\git\Node.js\nodebb\node_modules\mongodb\l
    ib\mongodb\cursor.js:733:5)
    at commandHandler (C:\Users\sam\git\Node.js\nodebb\node_modules\mongodb\lib
    mongodb\cursor.js:713:14)
    at C:\Users\sam\git\Node.js\nodebb\node_modules\mongodb\lib\mongodb\db.js:18
    06:9
    at Server.Base._callHandler (C:\Users\sam\git\Node.js\nodebb\node_modules\mo
    ngodb\lib\mongodb\connection\base.js:442:41)
    at C:\Users\sam\git\Node.js\nodebb\node_modules\mongodb\lib\mongodb\connecti
    on\server.js:485:18



  • And when I login with Twitter SSO, the Email in the user profile will be empty...


  • Admin

    thanks for reporting this @sam, I filed an issue on the sso-twitter repository - please keep in touch with this issue for any progress 🙂


Log in to reply
 

Suggested Topics

| |