Fix account password reset bug
This commit is contained in:
@@ -990,8 +990,10 @@ function checkAccountChangePassword(client, newPassword, confirmNewPassword) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
getPlayerData(client).accountData.password = hashAccountPassword(getPlayerData(client).accountData.name, params);
|
getPlayerData(client).accountData.password = hashAccountPassword(getPlayerData(client).accountData.name, newPassword);
|
||||||
messagePlayerSuccess(client, getLocaleString(client, "PasswordChanged"));
|
messagePlayerSuccess(client, getLocaleString(client, "PasswordChanged"));
|
||||||
|
showPlayerLoginGUI(client);
|
||||||
|
getPlayerData(client).accountData.needsSaved = true;
|
||||||
|
|
||||||
if(getPlayerData(client).passwordResetState == VRR_RESETPASS_STATE_SETPASS) {
|
if(getPlayerData(client).passwordResetState == VRR_RESETPASS_STATE_SETPASS) {
|
||||||
getPlayerData(client).passwordResetState = VRR_RESETPASS_STATE_NONE;
|
getPlayerData(client).passwordResetState = VRR_RESETPASS_STATE_NONE;
|
||||||
|
|||||||
Reference in New Issue
Block a user