Fix for emailBlackList domain
This commit is contained in:
parent
5c3f97f6c7
commit
7e9bde1d7a
@ -71,9 +71,9 @@ public class EmailCommand implements CommandExecutor {
|
|||||||
m._(player, "usage_email_change");
|
m._(player, "usage_email_change");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!args[1].contains("@")) {
|
if(!Settings.isEmailCorrect(args[1])) {
|
||||||
m._(player, "email_invalid");
|
m._(player, "email_invalid");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
auth.setEmail(args[1]);
|
auth.setEmail(args[1]);
|
||||||
if (!data.updateEmail(auth)) {
|
if (!data.updateEmail(auth)) {
|
||||||
@ -113,9 +113,9 @@ public class EmailCommand implements CommandExecutor {
|
|||||||
m._(player, "old_email_invalid");
|
m._(player, "old_email_invalid");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!args[2].contains("@")) {
|
if(!Settings.isEmailCorrect(args[2])) {
|
||||||
m._(player, "new_email_invalid");
|
m._(player, "new_email_invalid");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
auth.setEmail(args[2]);
|
auth.setEmail(args[2]);
|
||||||
if (!data.updateEmail(auth)) {
|
if (!data.updateEmail(auth)) {
|
||||||
|
|||||||
@ -49,7 +49,7 @@ public class RegisterCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
final String email = args[0];
|
final String email = args[0];
|
||||||
if(!Settings.isEmailCorrect(email)) {
|
if(!Settings.isEmailCorrect(email)) {
|
||||||
m._(player, "usage_reg");
|
m._(player, "email_invalid");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
RandomString rand = new RandomString(Settings.getRecoveryPassLength);
|
RandomString rand = new RandomString(Settings.getRecoveryPassLength);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user