[Bug Report] Able to set inactivity timeout to an integer that prevents login altogether
Description of Bug
(Summarize the bug encountered concisely) Able to log myself out of the dashboard via inactivity timeout being set to 0 or negative integer
What is the current bug behavior?
(What actually happens) Immediately logs me out after logging in.
What is the expected correct behavior?
(What you should see instead) Preventing me from being able to apply something 0 or negative in that field.
Steps to reproduce
(How one can reproduce the issue - this is very important)
- Go to session settings
- Set user inactivity timeout to 0 or negative integer
- Click Submit Changes
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Additional Information
(If you have any additional information you'd like to share) There should probably be some sort of form validation preventing a user from being able to lock themselves out of the dashboard via this setting.
I set it to -1 since this is normally indicative of an infinite amount of time in settings like this, but it locked me out.
Specifications
- Version: 2.1.7
- OS/Distro: Ubuntu Server 18.04
/label Bug