public void CommandFindPassword(int netId, string username, string pwdProtectAnswer, string newPwd) { bool success = EM_User.s_instance.FindPassword(username, pwdProtectAnswer, newPwd); if (success) { m_netService.SendServerCommand(SC_InitSelfModifyPassword.Instance(netId, true)); } else { m_netService.SendServerCommand(SC_InitSelfModifyPassword.Instance(netId, false)); } }
public void CommandModifyPassword(int netId, string username, string oldPwd, string newPwd) { int playerId = EM_User.s_instance.Login(username, oldPwd); if (playerId != -1) { EM_User.s_instance.ModifyPassword(username, newPwd); m_netService.SendServerCommand(SC_InitSelfModifyPassword.Instance(netId, true)); } else { m_netService.SendServerCommand(SC_InitSelfModifyPassword.Instance(netId, false)); } }