Invited users can't register Error: invalid-token...



  • Hello ,

    Recently I invited friends to join my forum, and I found back an old issue, but I guess this time it won't be the same problem origin...
    previous case : [Invited (future) users can't register](https://community.nodebb.org/topic/6525/invited-future-users-can-t-register url)

    Nodebb : latest version
    plugin : Emailer (Local) latest version

    When an invited friend (with clear cache/cookies) , click on the link to register, he get an invalid token error message.

    link received to register looks like :

    Here is what I get in my logs :

    22/1 11:59 [971] - error: /register
    Error: [[error:invalid-token]]
    at /var/www/mydomain.com/src/user/invite.js:118:18
    at fn (/var/www/mydomain.com/node_modules/async/lib/async.js:741:34)
    at /var/www/mydomain.com/node_modules/async/lib/async.js:1208:16
    at /var/www/mydomain.com/node_modules/async/lib/async.js:166:37
    at /var/www/mydomain.com/node_modules/async/lib/async.js:701:43
    at /var/www/mydomain.com/node_modules/async/lib/async.js:167:37
    at Command.callback (/var/www/mydomain.com/node_modules/async/lib/async.js:1204:30)
    at RedisClient.return_reply (/var/www/mydomain.com/node_modules/redis/index.js:664:25)
    at JavascriptReplyParser.reply_parser.send_reply (/var/www/mydomain.com/node_modules/redis/index.js:332:14)
    at JavascriptReplyParser.run (/var/www/mydomain.com/node_modules/redis/lib/parsers/javascript.js:132:18)

    Thanks for your help
    Regards


  • Admin

    Invitation tokens expire in 24 hours, are they clicking before that? Maybe we should increase that time 24 hours seems pretty short.



  • haha! might be this -_-;
    But a more explicit error message would be nice 🙂



  • The 24h delay was the issue.

    Thank you.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.