From b40105e42815796b7dc4c59c73f7264be36759a7 Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Wed, 4 May 2022 16:18:37 +0800 Subject: [PATCH] Update RegisterHandler.java --- src/main/java/me/exzork/gcauth/handler/RegisterHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 = "";