Fix the final exploit
This commit is contained in:
parent
73cea1a7ae
commit
2da302a0e1
1 changed files with 5 additions and 0 deletions
|
|
@ -356,6 +356,11 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
user = TShock.Users.GetUserByName(args.Parameters[0]);
|
user = TShock.Users.GetUserByName(args.Parameters[0]);
|
||||||
encrPass = TShock.Utils.HashPassword(args.Parameters[1]);
|
encrPass = TShock.Utils.HashPassword(args.Parameters[1]);
|
||||||
|
if (String.IsNullOrEmpty(args.Parameters[0]))
|
||||||
|
{
|
||||||
|
args.Player.SendErrorMessage("Error while logging in.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue