| 58 | } |
| 59 | |
| 60 | void NewPasswordDialog::onNewPassword() |
| 61 | { |
| 62 | auto result = NetworkService::get().setNewPassword(_userName, _newPassword, _confirmationCode); |
| 63 | if (result) { |
| 64 | LoginErrorCode errorCode; |
| 65 | result |= NetworkService::get().login(errorCode, _userName, _newPassword, _userInfo); |
| 66 | } |
| 67 | if (!result) { |
| 68 | GenericMessageDialog::get().information("Error", "An error occurred on the server. Your entered code may be incorrect.\nPlease try to reset the password again."); |
| 69 | return; |
| 70 | } |
| 71 | GenericMessageDialog::get().information("Information", "The password has been successfully set.\nYou are logged in."); |
| 72 | BrowserWindow::get().onRefresh(); |
| 73 | } |
nothing calls this directly
no test coverage detected