设置链接只允许点一次

This commit is contained in:
cxykevin 2024-08-20 22:11:47 +08:00
parent fd8564ecc2
commit 4a417107af
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ async def resetpasswd(uid: str, response: Response):
tkn = uuid.uuid4().hex
apikeys[tkn] = tokens[tokennow]
response.set_cookie("session", tokennow)
del emails[uid]
return '<html><head><meta http-equiv="refresh" content="0;url=/user"><title>正在跳转</title></head><body>正在跳转</body></html>'