I added another check to prevent conflicts with the registration setting.
This commit is contained in:
parent
d42efd85b1
commit
f8c08cd103
@ -101,7 +101,7 @@ public class OnJoinVerifier implements Reloadable {
|
||||
* @throws FailedVerificationException if the email verification is not completed
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user