mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-02 07:03:40 +00:00
Update utils.py (#579)
This commit is contained in:
parent
5ffd1f99fd
commit
67e953902b
@ -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…
Reference in New Issue
Block a user