Unverified Commit 33689761 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(recovery) Fix bad error message when mail sending fails

issue #5997
Showing with 2 additions and 2 deletions
+2 -2
...@@ -580,7 +580,7 @@ class passwordRecovery extends standAlonePage { ...@@ -580,7 +580,7 @@ class passwordRecovery extends standAlonePage {
if (mail_utf8($this->email_address, FALSE, $this->from_mail, $this->mail_subject, $mail_body)) { if (mail_utf8($this->email_address, FALSE, $this->from_mail, $this->mail_subject, $mail_body)) {
$this->step = 3; $this->step = 3;
} else { } else {
$this->message[] = msgPool::invalid(_("Contact your administrator, there was a problem with mail server")); $this->message[] = _('Contact your administrator, there was a problem with mail server');
} }
$smarty = get_smarty(); $smarty = get_smarty();
...@@ -657,7 +657,7 @@ class passwordRecovery extends standAlonePage { ...@@ -657,7 +657,7 @@ class passwordRecovery extends standAlonePage {
$this->step = 5; $this->step = 5;
$smarty->assign('changed', TRUE); $smarty->assign('changed', TRUE);
} else { } else {
$this->message[] = msgPool::invalid(_("There was a problem with mail server, confirmation email not sent")); $this->message[] = _('There was a problem with mail server, confirmation email not sent');
} }
} }
} }
......
  • SonarQube analysis reported 1 issue

    • :arrow_down_small: 1 minor

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. :arrow_down_small: Rename class "tabs_configInLdap" to match the regular expression ^[a-zA-Z][a-zA-Z0-9]*$. :blue_book:

    By Ghost User on 2019-06-27T08:34:05 (imported from GitLab)

Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment