Spaces:
Build error
Build error
XThomasBU
commited on
Commit
·
66d8970
1
Parent(s):
da00fb2
minor fix
Browse files- code/app.py +2 -0
code/app.py
CHANGED
|
@@ -241,6 +241,8 @@ async def post_signin(request: Request):
|
|
| 241 |
cooldown, _ = check_user_cooldown(user_details, current_datetime)
|
| 242 |
if cooldown:
|
| 243 |
return RedirectResponse("/cooldown")
|
|
|
|
|
|
|
| 244 |
|
| 245 |
if user_info:
|
| 246 |
username = user_info["email"]
|
|
|
|
| 241 |
cooldown, _ = check_user_cooldown(user_details, current_datetime)
|
| 242 |
if cooldown:
|
| 243 |
return RedirectResponse("/cooldown")
|
| 244 |
+
else:
|
| 245 |
+
await reset_tokens_for_user(user_details)
|
| 246 |
|
| 247 |
if user_info:
|
| 248 |
username = user_info["email"]
|