mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Fix admin login
This commit is contained in:
parent
94a1bbf9ef
commit
448870721f
|
@ -65,7 +65,7 @@ class RequireAdministrateAbility implements MiddlewareInterface
|
|||
|
||||
return new HtmlResponse(
|
||||
$this->view->make('flarum.admin::login')
|
||||
->with('token', $request->getAttribute('session')->csrf_token)
|
||||
->with('token', $request->getAttribute('session')->get('csrf_token'))
|
||||
->render()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user