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():