Add password reset GUI and processing

This commit is contained in:
Vortrex
2022-01-07 19:48:59 -06:00
parent 7dc047364e
commit b26b19ccc9
6 changed files with 30 additions and 5 deletions

View File

@@ -48,6 +48,8 @@ function addAllNetworkHandlers() {
// Account
addNetworkHandler("vrr.checkLogin", checkLogin);
addNetworkHandler("vrr.checkRegistration", checkRegistration);
addNetworkHandler("vrr.checkResetPassword", checkAccountResetPasswordRequest);
addNetworkHandler("vrr.checkChangePassword", checkAccountChangePassword);
// Developer
addNetworkHandler("vrr.runCodeSuccess", clientRunCodeSuccess);
@@ -288,6 +290,13 @@ function sendJobRouteStopToPlayer(client, position, colour) {
// ===========================================================================
function showPlayerChangePasswordGUI(client) {
logToConsole(LOG_DEBUG, `[VRR.Client] Sending change password GUI signal to ${getPlayerDisplayForConsole(client)}`);
triggerNetworkEvent("vrr.changePassword", client);
}
// ===========================================================================
function showPlayerLoginSuccessGUI(client) {
logToConsole(LOG_DEBUG, `[VRR.Client] Sending login success GUI signal to ${getPlayerDisplayForConsole(client)}`);
triggerNetworkEvent("vrr.loginSuccess", client);