Fix admin login

This commit is contained in:
Toby Zerner 2015-12-06 08:47:51 +10:30
parent 94a1bbf9ef
commit 448870721f

View File

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