added recovery process

This commit is contained in:
Antonio Ramirez
2016-12-06 16:15:15 +01:00
parent ea68cb3d84
commit 6f9cc5188e
4 changed files with 84 additions and 7 deletions

View File

@ -16,7 +16,7 @@ class ResetPasswordEvent extends Event
protected $form;
protected $token;
public function __construct(RecoveryForm $form, Token $token, array $config = [])
public function __construct(Token $token, RecoveryForm $form, array $config = [])
{
$this->form = $form;
$this->token = $token;
@ -33,4 +33,9 @@ class ResetPasswordEvent extends Event
{
return $this->token;
}
public function updateForm(RecoveryForm $form)
{
return new static($this->getToken(), $form);
}
}