Update app.py

This commit is contained in:
admin 2026-10-04 03:43:58 +00:00
parent 52e0a53c91
commit fa580bcc58

4
app.py
View File

@ -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