1
0
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:
Toby Zerner
2016-11-13 08:51:38 +10:30
parent dde0de046a
commit b2c691a03d
3 changed files with 28 additions and 5 deletions

View File

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