Use invitation and add known user even when registration is open

This commit is contained in:
yflory 2024-01-25 15:46:35 +01:00
parent aed3ef101d
commit 3c3a797be5

View File

@ -117,7 +117,6 @@ Block.writeLoginBlock = function (Env, msg, _cb) {
var validatedBlock, path;
var validatedInvite;
nThen(function (w) {
if (!Env.restrictRegistration) { return; }
if (!inviteToken) { return; }
Invitation.check(Env, inviteToken, w((err, state) => {
if (err || !state) { return; } // Invalid token, don't abort, check registration proof