Skip to content

Commit

Permalink
omit error message at startup in case of no account confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Jul 9, 2023
1 parent 5ddde90 commit 0432f93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/Gui/LoginDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _LoginDialog::_LoginDialog(
ResetPasswordDialog const& resetPasswordDialog,
NetworkController const& networkController)
: _browserWindow(browserWindow)
, _createUserDialog(createUserDialog)
, _createUserDialog(createUserDialog)
, _activateUserDialog(activateUserDialog)
, _networkController(networkController)
, _resetPasswordDialog(resetPasswordDialog)
Expand All @@ -32,7 +32,9 @@ _LoginDialog::_LoginDialog(
if (!_userName.empty()) {
LoginErrorCode errorCode;
if (!_networkController->login(errorCode, _userName, _password)) {
MessageDialog::getInstance().show("Error", "Login failed.");
if (errorCode != LoginErrorCode_UnconfirmedUser) {
MessageDialog::getInstance().show("Error", "Login failed.");
}
}
}
}
Expand Down

0 comments on commit 0432f93

Please sign in to comment.