Fix CrazyCrypt1 need player real case

This commit is contained in:
Xephi
2014-06-14 02:59:44 +02:00
parent 8db9c69ed0
commit 4de55d9efa
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ public class API {
String player = playerName.toLowerCase();
PlayerAuth auth = database.getAuth(player);
try {
return PasswordSecurity.comparePasswordWithHash(passwordToCheck, auth.getHash(), player);
return PasswordSecurity.comparePasswordWithHash(passwordToCheck, auth.getHash(), playerName);
} catch (NoSuchAlgorithmException e) {
return false;
}