设置链接只允许点一次
This commit is contained in:
parent
fd8564ecc2
commit
4a417107af
|
@ -179,6 +179,7 @@ async def resetpasswd(uid: str, response: Response):
|
||||||
tkn = uuid.uuid4().hex
|
tkn = uuid.uuid4().hex
|
||||||
apikeys[tkn] = tokens[tokennow]
|
apikeys[tkn] = tokens[tokennow]
|
||||||
response.set_cookie("session", 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>'
|
return '<html><head><meta http-equiv="refresh" content="0;url=/user"><title>正在跳转</title></head><body>正在跳转</body></html>'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue