mirror of
https://github.com/flarum/framework.git
synced 2025-02-18 08:42:45 +08:00
Fix reset password error
This commit is contained in:
parent
268b041da2
commit
baed659668
|
@ -14,10 +14,24 @@ use Flarum\Core\Users\PasswordToken;
|
|||
use Flarum\Support\HtmlAction;
|
||||
use Flarum\Core\Exceptions\InvalidConfirmationTokenException;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Illuminate\Contracts\View\Factory;
|
||||
use DateTime;
|
||||
|
||||
class ResetPasswordAction extends HtmlAction
|
||||
{
|
||||
/**
|
||||
* @var Factory
|
||||
*/
|
||||
protected $view;
|
||||
|
||||
/**
|
||||
* @param Factory $view
|
||||
*/
|
||||
public function __construct(Factory $view)
|
||||
{
|
||||
$this->view = $view;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param array $routeParams
|
||||
|
@ -33,6 +47,6 @@ class ResetPasswordAction extends HtmlAction
|
|||
throw new InvalidConfirmationTokenException;
|
||||
}
|
||||
|
||||
return view('flarum::reset')->with('token', $token->id);
|
||||
return $this->view->make('flarum::reset')->with('token', $token->id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user