Verification expired
+ ++ This email verification link has expired. + Please request a new verification email. +
+ + - - - """ +diff --git a/backend/main.py b/backend/main.py index ecda986..c10c6c6 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1082,57 +1082,333 @@ def api_update_email( @app.get( "/verify-email", response_class=HTMLResponse, + summary="Verify email address", ) -def api_verify_email(token: str = Query(...)): +def api_verify_email( + token: str = Query(...), +): result = verify_email(token) if result["status"] == "failed": if result["reason"] == "token_expired": - return """ - - -
- -This verification link has expired.
- - - """ + return HTMLResponse( + content=""" + + + + + - return """ - - - - -This verification link is invalid.
- - - """ +Your email address has been successfully verified.
-You may now close this tab.
+ + + + ++ This email verification link has expired. + Please request a new verification email. +
+ + - - - """ ++ This verification link is invalid or has already been used. +
+ + ++ Your email address has been successfully verified. +
+ ++ You may now close this tab. +
+ + +This password reset link has expired.
- - - """ + return HTMLResponse( + content=""" + + + + + - return """ - - - - -This password reset link is invalid.
- - - """ ++ This password reset link has expired. + Please request a new password reset. +
++ This password reset link is invalid or has already been used. +
+Your password has been successfully changed.
-You may now close this tab.
- - - """ + ++ Your password has been successfully changed. +
+ ++ You may now close this tab. +
+