Browse Source

Update utils.py (#579)

pull/595/head
中国娃 7 years ago committed by 老广
parent
commit
67e953902b
  1. 2
      apps/users/utils.py

2
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)

Loading…
Cancel
Save