mirror of https://github.com/jumpserver/jumpserver
Update utils.py (#579)
parent
5ffd1f99fd
commit
67e953902b
|
@ -154,7 +154,7 @@ def check_user_valid(**kwargs):
|
||||||
return None, _('Password or SSH public key invalid')
|
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)
|
cache.set(token, user.id, expiration)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue