mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Use invitation and add known user even when registration is open
This commit is contained in:
parent
aed3ef101d
commit
3c3a797be5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user