diff --git a/src/server/Server.js b/src/server/Server.js index 0cb8325..6b4236a 100644 --- a/src/server/Server.js +++ b/src/server/Server.js @@ -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');