1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-28 20:45:00 +03:00

fix lang and url

This commit is contained in:
Mzhelskiy Maxim 2014-11-25 17:02:44 +07:00
parent 13849215a0
commit 97971c52c5
2 changed files with 3 additions and 3 deletions

View file

@ -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;
} }

View file

@ -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}