Fix the final exploit

This commit is contained in:
MarioE 2012-08-15 14:00:19 -04:00
parent 73cea1a7ae
commit 2da302a0e1

View file

@ -356,6 +356,11 @@ namespace TShockAPI
{
user = TShock.Users.GetUserByName(args.Parameters[0]);
encrPass = TShock.Utils.HashPassword(args.Parameters[1]);
if (String.IsNullOrEmpty(args.Parameters[0]))
{
args.Player.SendErrorMessage("Error while logging in.");
return;
}
}
else
{