mirror of
https://github.com/exzork/GCAuth.git
synced 2024-11-30 10:52:47 +00:00
Update RegisterHandler.java
This commit is contained in:
parent
061f70c376
commit
b40105e428
@ -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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user