From 448870721f9440a99b1db5068dd7ae85e8403b45 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 6 Dec 2015 08:47:51 +1030 Subject: [PATCH] Fix admin login --- .../core/src/Admin/Middleware/RequireAdministrateAbility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ); }