From fa580bcc58a680a6af4662865f22fe5e37b465da Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 4 Oct 2026 03:43:58 +0000 Subject: [PATCH] Update app.py --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index e03369c..22c4b90 100644 --- a/app.py +++ b/app.py @@ -1924,13 +1924,12 @@ def register(): INSERT OR IGNORE INTO user_profiles ( user_id, display_name, - badge_text, bio, bio_mode, website, location, updated_at - ) VALUES (?, ?, '', '', 'txt', '', '', ?) + ) VALUES (?, ?, '', 'txt', '', '', ?) """, (user["id"], username, now_iso()), ) @@ -1962,6 +1961,7 @@ def register(): @app.route("/api/login", methods=["POST"]) def login(): + limited = rate_limited("login") if limited: return limited @@ -2014,7 +2014,7 @@ def login(): "csrf_token": csrf_token(), } ) - + @app.route("/api/logout", methods=["POST"]) def logout(): if not csrf_valid():