mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
fix lang and url
This commit is contained in:
parent
13849215a0
commit
97971c52c5
|
@ -97,7 +97,7 @@ class ActionLogin extends Action
|
||||||
|
|
||||||
if ($oUser->getPassword() == func_encrypt(getRequest('password'))) {
|
if ($oUser->getPassword() == func_encrypt(getRequest('password'))) {
|
||||||
if (!$oUser->getActivate()) {
|
if (!$oUser->getActivate()) {
|
||||||
$this->Message_AddErrorSingle($this->Lang_Get('auth.notices.not_activated',
|
$this->Message_AddErrorSingle($this->Lang_Get('auth.login.notices.error_not_activated',
|
||||||
array('reactivation_path' => Router::GetPath('registration') . 'reactivation')));
|
array('reactivation_path' => Router::GetPath('registration') . 'reactivation')));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@ class ActionLogin extends Action
|
||||||
$oReminder->setIsUsed(0);
|
$oReminder->setIsUsed(0);
|
||||||
$oReminder->setUserId($oUser->getId());
|
$oReminder->setUserId($oUser->getId());
|
||||||
if ($this->User_AddReminder($oReminder)) {
|
if ($this->User_AddReminder($oReminder)) {
|
||||||
$this->Message_AddNotice($this->Lang_Get('auth.notices.success_send_password'));
|
$this->Message_AddNotice($this->Lang_Get('auth.reset.notices.success_send_link'));
|
||||||
$this->Notify_SendReminderCode($oUser, $oReminder);
|
$this->Notify_SendReminderCode($oUser, $oReminder);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
{lang name='emails.reminder_code.text' params=[
|
{lang name='emails.reminder_code.text' params=[
|
||||||
'website_url' => Router::GetPath('/'),
|
'website_url' => Router::GetPath('/'),
|
||||||
'website_name' => Config::Get('view.name'),
|
'website_name' => Config::Get('view.name'),
|
||||||
'recover_url' => "{router page='login'}reminder/{$oReminder->getCode()}/"
|
'recover_url' => "{router page='login'}reset/{$oReminder->getCode()}/"
|
||||||
]}
|
]}
|
||||||
{/block}
|
{/block}
|
Loading…
Reference in a new issue