mirror of
https://github.com/exzork/GCAuth.git
synced 2024-11-30 18:58:54 +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);
|
String password = Authentication.generateHash(registerAccount.password);
|
||||||
Account account = Authentication.getAccountByUsernameAndPassword(registerAccount.username, "");
|
Account account = Authentication.getAccountByUsernameAndPassword(registerAccount.username, "");
|
||||||
if (account != null) {
|
if (account != null) {
|
||||||
String newPassword = Authentication.generateHash(password);
|
account.setPassword(password);
|
||||||
account.setPassword(newPassword);
|
|
||||||
account.save();
|
account.save();
|
||||||
authResponse.success = true;
|
authResponse.success = true;
|
||||||
authResponse.message = "";
|
authResponse.message = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user