Use Utils.isEmailEmpty #1329

This commit is contained in:
sgdc3 2017-09-16 14:02:16 +02:00
parent 9392291b36
commit 3d26357df6
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public class AsynchronousLogin implements AsynchronousProcess {
limboService.muteMessageTask(player);
service.send(player, MessageKey.USAGE_CAPTCHA,
captchaManager.getCaptchaCodeOrGenerateNew(player.getName()));
} else if (emailService.hasAllInformation() && !auth.getEmail().equals("your@email.com")) {
} else if (emailService.hasAllInformation() && !Utils.isEmailEmpty(auth.getEmail())) {
service.send(player, MessageKey.FORGOT_PASSWORD_MESSAGE);
}
}