mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-21 22:58:05 +00:00
🐛 Fix ajax failure does not reapply
This commit is contained in:
parent
d7bef825c2
commit
28164f52c1
@ -77,6 +77,8 @@ class ChallengeSystem(Plugin):
|
||||
return client.uid, "ajax", "ajax"
|
||||
except APIHelperException as exc:
|
||||
logger.warning("用户 %s ajax 验证失效 错误信息为 %s", user_id, str(exc))
|
||||
logger.warning("用户 %s ajax 验证失败 重新申请验证", user_id)
|
||||
return await self.create_challenge(user_id, need_verify, False)
|
||||
await self.set_challenge(client.uid, gt, challenge)
|
||||
return client.uid, gt, challenge
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user