I added another check to prevent conflicts with the registration setting.

This commit is contained in:
Deichor 2024-12-10 03:32:49 +03:00
parent d42efd85b1
commit f8c08cd103

View File

@ -101,7 +101,7 @@ public class OnJoinVerifier implements Reloadable {
* @throws FailedVerificationException if the email verification is not completed * @throws FailedVerificationException if the email verification is not completed
*/ */
public void checkKickNotVerified(boolean isAuthAvailable) throws FailedVerificationException { public void checkKickNotVerified(boolean isAuthAvailable) throws FailedVerificationException {
if (!isAuthAvailable && settings.getProperty(RestrictionSettings.KICK_NOT_VERIFIED)) { if (!isAuthAvailable && settings.getProperty(RestrictionSettings.KICK_NON_REGISTERED) && settings.getProperty(RestrictionSettings.KICK_NOT_VERIFIED)) {
throw new FailedVerificationException(MessageKey.MUST_VERIFIED_MESSAGE); throw new FailedVerificationException(MessageKey.MUST_VERIFIED_MESSAGE);
} }
} }