mirror of https://github.com/openspug/spug
F 通用 修复登录成功后登录限制计数器不清零的问题
parent
f4e81f84eb
commit
c207dae863
|
@ -124,6 +124,7 @@ def login():
|
|||
if user:
|
||||
if user.is_active:
|
||||
if user.verify_password(form.password):
|
||||
login_limit.pop(form.username, None)
|
||||
token = uuid.uuid4().hex
|
||||
user.access_token = token
|
||||
user.token_expired = time.time() + 8 * 60 * 60
|
||||
|
|
Loading…
Reference in New Issue