mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 01:36:53 +08:00
fixes internal clients use of session
With remember from cookie, in certain edge cases, the middleware would try to load a session which hasn't been instantiated as this middleware is excluded for the client. Excluding the remember from cookie middleware will resolve this as authentication is done using the RequestUtil and ActorReference regardlessly.
This commit is contained in:
parent
408bb38cc0
commit
7d4d3d977b
|
@ -111,7 +111,8 @@ class ApiServiceProvider extends AbstractServiceProvider
|
|||
HttpMiddleware\StartSession::class,
|
||||
HttpMiddleware\AuthenticateWithSession::class,
|
||||
HttpMiddleware\AuthenticateWithHeader::class,
|
||||
HttpMiddleware\CheckCsrfToken::class
|
||||
HttpMiddleware\CheckCsrfToken::class,
|
||||
HttpMiddleware\RememberFromCookie::class,
|
||||
];
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user