Update app.py
This commit is contained in:
parent
52e0a53c91
commit
fa580bcc58
4
app.py
4
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user