mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
Changed error message for failed registration
This commit is contained in:
parent
fedf8a953a
commit
e8a9fb0c03
@ -108,7 +108,7 @@ public class RegistrationCommands {
|
|||||||
if (user.isPresent()) {
|
if (user.isPresent()) {
|
||||||
registerUser(user.get(), sender, getPermissionLevel(sender));
|
registerUser(user.get(), sender, getPermissionLevel(sender));
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(locale.getString(FailReason.USER_DOES_NOT_EXIST));
|
throw new IllegalArgumentException(locale.getString(FailReason.USER_INFORMATION_NOT_FOUND));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ public enum FailReason implements Lang {
|
|||||||
EXPIRED_COOKIE("User cookie has expired"),
|
EXPIRED_COOKIE("User cookie has expired"),
|
||||||
USER_AND_PASS_NOT_SPECIFIED("User and Password not specified"),
|
USER_AND_PASS_NOT_SPECIFIED("User and Password not specified"),
|
||||||
USER_DOES_NOT_EXIST("User does not exist"),
|
USER_DOES_NOT_EXIST("User does not exist"),
|
||||||
|
USER_INFORMATION_NOT_FOUND("Registration failed, try again (The code expires after 15 minutes)"),
|
||||||
USER_PASS_MISMATCH("User and Password did not match"),
|
USER_PASS_MISMATCH("User and Password did not match"),
|
||||||
DATABASE_NOT_OPEN("Database is not open, check db status with /plan info"),
|
DATABASE_NOT_OPEN("Database is not open, check db status with /plan info"),
|
||||||
ERROR("Authentication failed due to error");
|
ERROR("Authentication failed due to error");
|
||||||
|
Loading…
Reference in New Issue
Block a user