From fbed8728be59040a7218610e72f6eceb5f8bc152 Mon Sep 17 00:00:00 2001 From: Remigijus Kiminas Date: Mon, 3 Jan 2022 01:11:45 -0500 Subject: [PATCH] Show same message in all cases --- .../design/defaulttheme/tpl/lhuser/forgotpasswordsent.tpl.php | 2 +- lhc_web/modules/lhuser/forgotpassword.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lhc_web/design/defaulttheme/tpl/lhuser/forgotpasswordsent.tpl.php b/lhc_web/design/defaulttheme/tpl/lhuser/forgotpasswordsent.tpl.php index abf505a04b..08edc0849f 100644 --- a/lhc_web/design/defaulttheme/tpl/lhuser/forgotpasswordsent.tpl.php +++ b/lhc_web/design/defaulttheme/tpl/lhuser/forgotpasswordsent.tpl.php @@ -1,2 +1,2 @@

getTranslation('user/forgotpasswordsent','Password reminder');?>

-

getTranslation('user/forgotpasswordsent','E-mail sent. Click the link in the email and You will be able to set a new password.')?>

+

getTranslation('user/forgotpasswordsent','If this e-mail exists we have send password remind link. Click the link in the email and You will be able to set a new password.')?>

diff --git a/lhc_web/modules/lhuser/forgotpassword.php b/lhc_web/modules/lhuser/forgotpassword.php index 093e5f5b02..c487cb3a70 100644 --- a/lhc_web/modules/lhuser/forgotpassword.php +++ b/lhc_web/modules/lhuser/forgotpassword.php @@ -94,9 +94,9 @@ $tpl = erLhcoreClassTemplate::getInstance( 'lhuser/forgotpasswordsent.tpl.php'); } else { - erLhcoreClassModule::redirect('user/forgotpassword'); - exit; + $tpl = erLhcoreClassTemplate::getInstance( 'lhuser/forgotpasswordsent.tpl.php'); } + } else { $tpl->set('errors',$Errors); }