Change message to be "greater than or equal to"
This commit is contained in:
parent
12f893e0cb
commit
379a689ae2
1 changed files with 3 additions and 3 deletions
|
|
@ -928,7 +928,7 @@ namespace TShockAPI
|
||||||
user.CreateBCryptHash(args.Parameters[0]);
|
user.CreateBCryptHash(args.Parameters[0]);
|
||||||
}
|
}
|
||||||
catch (ArgumentOutOfRangeException) {
|
catch (ArgumentOutOfRangeException) {
|
||||||
args.Player.SendErrorMessage("Password must be > " + TShock.Config.MinimumPasswordLength + " characters.");
|
args.Player.SendErrorMessage("Password must be greater than or equal to " + TShock.Config.MinimumPasswordLength + " characters.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -939,7 +939,7 @@ namespace TShockAPI
|
||||||
try {
|
try {
|
||||||
user.CreateBCryptHash(args.Parameters[1]);
|
user.CreateBCryptHash(args.Parameters[1]);
|
||||||
} catch (ArgumentOutOfRangeException) {
|
} catch (ArgumentOutOfRangeException) {
|
||||||
args.Player.SendErrorMessage("Password must be > " + TShock.Config.MinimumPasswordLength + " characters.");
|
args.Player.SendErrorMessage("Password must be greater than or equal to " + TShock.Config.MinimumPasswordLength + " characters.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -992,7 +992,7 @@ namespace TShockAPI
|
||||||
try {
|
try {
|
||||||
user.CreateBCryptHash(args.Parameters[2]);
|
user.CreateBCryptHash(args.Parameters[2]);
|
||||||
} catch (ArgumentOutOfRangeException) {
|
} catch (ArgumentOutOfRangeException) {
|
||||||
args.Player.SendErrorMessage("Password must be > " + TShock.Config.MinimumPasswordLength + " characters.");
|
args.Player.SendErrorMessage("Password must be greater than or equal to " + TShock.Config.MinimumPasswordLength + " characters.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
user.Group = args.Parameters[3];
|
user.Group = args.Parameters[3];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue