mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
The snap, Docker, docker-compose and start scripts have offered LOGOUT_WITH_TIMER, LOGOUT_IN, LOGOUT_ON_HOURS and LOGOUT_ON_MINUTES since 2018, but the code that read them was removed with the job queue it ran on, so they did nothing. Per the maintainer decision of 2026-10-08 they work again. A login ends LOGOUT_IN days after it was made, or at LOGOUT_ON_HOURS:LOGOUT_ON_MINUTES server time (the next such time, or on the day LOGOUT_IN days later). Once a minute the server removes the expired login tokens in one query, and Meteor signs out the browsers that used them. The four settings are overridable in Admin Panel / People / Login like the other login variables, with hours and minutes bounded. An unusable combination signs nobody out and the server log says why. tests/logoutTimer.test.cjs checks the one-query cutoff against the per-login deadline over two years of logins in three time zones, two of them with daylight saving time. Thanks to xet7 !