Closed (fixed)
Project:
Automated Logout
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2017 at 07:04 UTC
Updated:
10 Apr 2019 at 13:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
stockticker commentedIf role timeout checkbox is enabled, make sure that you enable all of the roles as well and, for instance, if you want some of the roles never log out - set 0 to timeout property.
I have attached screenshot with proper settings.
However, keep in mind, since your roles (for example, editor - see screenshot) will share authenticated user role as well - it will take less value from available timeout options. I'm not sure if it's a bug or it is working like designed.
Comment #3
cola commentedi cannot accept this answer, because if you uncheck the checkbox, must this role be ignored... so for me is this a bug not work as designd...
Comment #4
nkoporecHere is a patch that fixes this issue.So only roles that are checked will be logged out.
Comment #6
maaty388 commentedI updated AutologoutTest.php
Comment #7
nkoporec@matjaz_zavski thanks for the test fix! Re-applied your patch and it's working.Marking as Needs review so other people can test it too.
Comment #8
janez zibelnik commentedTested the patch provided by @nkoporec and @matjaz_zavski. The patches fix the issue.
Comment #9
deepanker_bhalla commentedHi,
I have applied the patch and the there is still issue with the per role logout issue. As its not taking the specific time mentioned on the roles as desired.
Kindly check the screenshot as per reference.
authenticated.png : It is my authenticated user.
autologout-setting.png : It is the configuration i have done in the module.
Comment #10
deaom commentedHi, I tested the patch and it works, the users gets logout as per role time set in the settings page. The problem is in the block display of the time, which is not correct. Will open a new issue regarding that #3023156: Autologout block not displaying time remaining correctly per role.
Comment #11
ajitsThank you for reporting, patches, and the reviews!
I think we could use this issue to optimize the configuration form. It is confusing tbh. I think the following changes would make sense:
#stateslook to be in place. However, the table shows up regardless of the statue of the checkbox.0for all roles on install. With this, if the admin chooses to have time out settings for only some roles they would just need to change the value of those roles. Make the "Timeout (seconds)" field required.Please let me know if any clarifications are required. Thank you all in advance for your inputs!
Comment #12
ajitsI've made a few changes in this patch:
#statesfor theRole Timeoutcheckbox.Enablecheckbox per role toCustomize.authenticatedrole from the listed role. As the setting is known to fallback on the standardTimeout value in secondsanyways.Will commit if tests are happy. Don't see any reason why not :)
Comment #13
ajitsComment #15
ajitsUpdated tests.
Comment #17
ajitsCommitted and pushed to 8.x-1.x
Thank you to everyone who was involved!