Can we exclude an IP address range from the auto logout so that it does not trigger when a user is logged? For example if a user is logged in from the office then the auto logout does not trigger but if logged in from home then it does trigger. I read there are some developer hooks that can be used but there does not seem to be much documentation. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | autologout-prevent-by-whitelisted-ipaddresses-3081421-14.patch | 3.29 KB | deaom |
| #8 | autologout-prevent-by-whitelisted-ipaddresses-2769219.patch | 2.65 KB | klepzers |
Comments
Comment #2
ajitsThis could be a good feature to be added to the module. I would be happy to review if someone creates a patch for the same.
Comment #3
sohal khatwani commentedHi @AjitS. That's good to hear. We were actually looking for some guidance on writing this or perhaps engage someone to do the work for us? Is this something you would consider writing and committing to the module after review?
Comment #4
klepzers commentedHello!
Is it necessary for Drupal 7 or Drupal 8?
I might make feature like this for D8 version - add a list of Whitelisted IP addresses, which do not use auto-logout feature.
Comment #5
sohal khatwani commentedHi. I think it’s beneficial to both. However need it for Drupal 7. Like your is for adding a list of whitelisted IP address.
Comment #6
klepzers commentedI have working solution for D8 already (I just haven't created an issue here for 8.x), maybe I will make for D7 also.
Comment #7
sohal khatwani commentedThat’s great. Please let me know if we can help with testing or review.
Comment #8
klepzers commentedHere you go!
Comment #9
sohal khatwani commentedThanks @klepzers. We will try this out.
Comment #10
klepzers commentedComment #12
sohal khatwani commentedHi @klepzers. Not sure this patch is working for D7. Can you confirm if this applies to autologout 7.x-4.5. Thanks.
Comment #13
deaom commentedThis patch seems to apply but with the p1 option. But there is an error in the patch that is why the test has an error and patch not working. It's the wrong array key used in the validation function.
Here is the corrected patch which applies with the p1 option and does not log out the IPs entered as far as I tested it.
Wrong file attached...
Comment #14
deaom commentedThe correct file.
Comment #15
strozx commentedApplied the patch and it works as described. Thanks DeaOm!
Comment #16
strozx commentedComment #18
boshtian commented