-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
login time expired #13
Comments
Hi @paskuale75 |
Thanks @simialbi register them via |
It should work like this (untested): 'components' => [
// ...
],
'container' => [
'definitions' => [
'simialbi\yii2\elfinder\controllers\ConnectionController' => [
'as access' => [
'class' => 'yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'actions' => ['index'],
'roles' => ['@']
]
]
]
]
]
] |
ok @simialbi I will try as you advised me, two questions:
Thanks |
|
Thanks @simialbi it works fine, only one thing being a response json does not redirect at login but returns the message 403 forbidden, do you have any advice to redirect the login page when the session expires ? |
It's not this easy. The problem here is, that it's not a regular pjax request from the framework which would redirect if a 301 header is sent. It's an ajax request from elfinder.js itself... |
Therefore the only hope is to have this attitude from inside the component ? Thanks |
Would that really change anything? If the mask is already rendered, you'll see the exact same behavior, don't you? |
When the time expires and the user is no longer logged in, elfinder continues to do operations as if nothing happened.
The text was updated successfully, but these errors were encountered: