diff --git a/framework/core/src/Admin/Middleware/RequireAdministrateAbility.php b/framework/core/src/Admin/Middleware/RequireAdministrateAbility.php index ac0268f87..ad6f2ea2c 100644 --- a/framework/core/src/Admin/Middleware/RequireAdministrateAbility.php +++ b/framework/core/src/Admin/Middleware/RequireAdministrateAbility.php @@ -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() ); }