mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 01:10:46 +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
b11b6ec456
commit
274dac123f
|
@ -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