From 67244d5e7bf45b58323fdd9808afe5d245d67c66 Mon Sep 17 00:00:00 2001 From: DNx5 Date: Sat, 28 Nov 2015 04:01:51 +0700 Subject: [PATCH] Fix admin register command lowercase the password. --- .../xephi/authme/command/executable/authme/RegisterCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/command/executable/authme/RegisterCommand.java b/src/main/java/fr/xephi/authme/command/executable/authme/RegisterCommand.java index 70595cdb9..8ddbfefdf 100644 --- a/src/main/java/fr/xephi/authme/command/executable/authme/RegisterCommand.java +++ b/src/main/java/fr/xephi/authme/command/executable/authme/RegisterCommand.java @@ -69,7 +69,7 @@ public class RegisterCommand extends ExecutableCommand { m.send(sender, MessageKey.NAME_ALREADY_REGISTERED); return; } - String hash = PasswordSecurity.getHash(Settings.getPasswordHash, playerPassLowerCase, playerNameLowerCase); + String hash = PasswordSecurity.getHash(Settings.getPasswordHash, playerPass, playerNameLowerCase); PlayerAuth auth = new PlayerAuth(playerNameLowerCase, hash, "192.168.0.1", 0L, "your@email.com", playerName); if (PasswordSecurity.userSalt.containsKey(playerNameLowerCase) && PasswordSecurity.userSalt.get(playerNameLowerCase) != null) auth.setSalt(PasswordSecurity.userSalt.get(playerNameLowerCase));