mirror of
https://github.com/flarum/core.git
synced 2025-10-11 23:14:29 +02:00
Improve password reset validation/error handling
This commit is contained in:
@@ -57,6 +57,7 @@ class ResetPasswordController extends AbstractHtmlController
|
||||
return $this->view->make('flarum::reset')
|
||||
->with('translator', $this->translator)
|
||||
->with('passwordToken', $token->id)
|
||||
->with('csrfToken', $request->getAttribute('session')->get('csrf_token'));
|
||||
->with('csrfToken', $request->getAttribute('session')->get('csrf_token'))
|
||||
->with('error', $request->getAttribute('session')->get('error'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user