diff --git a/apps/users/utils.py b/apps/users/utils.py index 67e9b1d37..adda32200 100644 --- a/apps/users/utils.py +++ b/apps/users/utils.py @@ -154,7 +154,7 @@ def check_user_valid(**kwargs): return None, _('Password or SSH public key invalid') -def refresh_token(token, user, expiration=3600): +def refresh_token(token, user, expiration=settings.CONFIG.TOKEN_EXPIRATION or 3600): cache.set(token, user.id, expiration)