Update forget() method
This commit is contained in:
parent
54442a196b
commit
4d2cf3f7ff
2 changed files with 3 additions and 5 deletions
|
@ -208,7 +208,7 @@ class Auth extends Page
|
|||
/**
|
||||
* Запрос на смену кодовой фразы
|
||||
*/
|
||||
public function forget(array $args, string $method): Page
|
||||
public function forget(array $args, string $method, string $email = ''): Page
|
||||
{
|
||||
$this->c->Lang->load('validator');
|
||||
$this->c->Lang->load('auth');
|
||||
|
@ -315,9 +315,7 @@ class Auth extends Page
|
|||
$this->onlinePos = 'passphrase_reset';
|
||||
$this->robots = 'noindex';
|
||||
$this->titles = __('Passphrase reset');
|
||||
|
||||
$email = $v ? $v->email : ($args['_email'] ?? '');
|
||||
$this->form = $this->formForget($email);
|
||||
$this->form = $this->formForget($v ? $v->email : $email);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
@ -265,7 +265,7 @@ class Register extends Page
|
|||
$auth = $this->c->Auth;
|
||||
$auth->fIswev = ['w', __('Error welcom mail', $this->c->config->o_admin_email)];
|
||||
|
||||
return $auth->forget(['_email' => $v->email], 'GET');
|
||||
return $auth->forget([], 'GET', $v->email);
|
||||
}
|
||||
// форма логина
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue