Commit 67e95390 authored by 中国娃's avatar 中国娃 Committed by 老广

Update utils.py (#579)

parent 5ffd1f99
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment