disallow discord registration if code is required
This commit is contained in:
parent
9217103bae
commit
46ad540f68
@ -253,7 +253,7 @@ class Server extends EventEmitter {
|
||||
this.logger.info(`${profile.username} (${profile.id}) is logging in.`);
|
||||
// We don't need this here
|
||||
delete profile.accessToken;
|
||||
const user = await this.userDatabase.userFromDiscord(profile, !this.registrationEnabled);
|
||||
const user = await this.userDatabase.userFromDiscord(profile, !this.registrationEnabled || this.requireCodeForRegister);
|
||||
let err = null;
|
||||
if (!user)
|
||||
err = new Error('No such user');
|
||||
|
Loading…
Reference in New Issue
Block a user