提交 67e95390 编写于 作者: 中国娃 提交者: baltery

Update utils.py (#579)

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册