Skip to content

Commit 9d51762

Browse files
authored
Merge pull request #359 from devon-mar/login-timeout-fix
Fix TypeError when using LOGIN_TIMEOUT
2 parents 3cbdf26 + 4276c94 commit 9d51762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configuration/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _read_secret(secret_name, default = None):
157157

158158
# The length of time (in seconds) for which a user will remain logged into the web UI before being prompted to
159159
# re-authenticate. (Default: 1209600 [14 days])
160-
LOGIN_TIMEOUT = environ.get('LOGIN_TIMEOUT', None)
160+
LOGIN_TIMEOUT = int(environ.get('LOGIN_TIMEOUT', 1209600))
161161

162162
# Setting this to True will display a "maintenance mode" banner at the top of every page.
163163
MAINTENANCE_MODE = environ.get('MAINTENANCE_MODE', 'False').lower() == 'true'

0 commit comments

Comments
 (0)