Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change lost password message #18947

Draft
wants to merge 2 commits into
base: 10.0/bugfixes
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Api/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -2216,7 +2216,7 @@ protected function lostPassword($params = [])
$this->returnError($e->getMessage());
}
return [
__('If the given email address match an exisiting GLPI user, you will receive an email containing the informations required to reset your password. Please contact your administrator if you do not receive any email.')
__('If the given email address corresponds to one and only one GLPI user, you will receive an email containing the information required to reset your password. Please contact your administrator if you do not receive an email.')
];
} else {
$password = isset($params['password']) ? $params['password'] : '';
Expand Down
2 changes: 1 addition & 1 deletion src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -5738,7 +5738,7 @@ public function showForgetPassword($email)
Session::addMessageAfterRedirect($e->getMessage(), false, ERROR);
return;
}
Session::addMessageAfteRredirect(__('If the given email address match an exisiting GLPI user, you will receive an email containing the informations required to reset your password. Please contact your administrator if you do not receive any email.'));
Session::addMessageAfteRredirect(__('If the given email address corresponds to one and only one GLPI user, you will receive an email containing the information required to reset your password. Please contact your administrator if you do not receive an email.'));

TemplateRenderer::getInstance()->display('password_form.html.twig', [
'title' => __('Forgotten password?'),
Expand Down