diff --git a/src/main/java/me/exzork/gcauth/handler/RegisterHandler.java b/src/main/java/me/exzork/gcauth/handler/RegisterHandler.java index 382ee32..dee818b 100644 --- a/src/main/java/me/exzork/gcauth/handler/RegisterHandler.java +++ b/src/main/java/me/exzork/gcauth/handler/RegisterHandler.java @@ -32,8 +32,7 @@ public class RegisterHandler implements HttpContextHandler { String password = Authentication.generateHash(registerAccount.password); Account account = Authentication.getAccountByUsernameAndPassword(registerAccount.username, ""); if (account != null) { - String newPassword = Authentication.generateHash(password); - account.setPassword(newPassword); + account.setPassword(password); account.save(); authResponse.success = true; authResponse.message = "";