Are invitation tokens only valid 24 hours?
-
I don't have an install up and running at the moment, but this setting does appear to be configurable:
User.sendInvitationEmail = function (uid, email, callback) { callback = callback || function () {}; var token = utils.generateUUID(); var registerLink = nconf.get('url') + '/register?token=' + token + '&email=' + encodeURIComponent(email); var expireIn = (parseInt(meta.config.inviteExpiration, 10) || 1) * 86400000;
src/views/admin/settings/user.tpl: <input type="number" class="form-control" data-field="inviteExpiration" placeholder="1">
So I'd look for it somewhere in admin user settings.
-
@chrisb just FYI, there's a search box in the ACP. You can use it to search for settings. That's what it's for.
-
@PitaJ OK I finally found it. It's nice to have a search but it's a pity that this recurring theme (found more questions on google for this issue, but not the solution) is not documented as far as I could find.
The setting is under User > User registration near the bottom of the page: "Invite expiration"
The default of 24 hours, mentioned nowhere explicitly, eg. not in the email itself, is confusing to say the least. We were already in production and had send out a batch to our real users, only after days we came to realize that the reason the users could not register and the invitations had to be resend multiple times is because the token was time expired.Here someone posted a very similar issue but your co-moderator deceidec to fix it behind closed doors..
-
@jw-sbat what do you suggest we do? We have an FAQ page but adding every question we get would void the purpose. We have documentation, but the ACP has the purpose of settings built in, and a search right there.
-
Increase default expiry of user invitation tokens to 1 week · Issue #6347 · NodeBB/NodeBB
It uses the default of 24 hours right now, which is a holdover from the same logic used for the password reset timeout. As user invitations are decidedly less critical, a longer timeout makes sense from a UX POV. More info: https://commu...
GitHub (github.com)