fsdfsd]
This commit is contained in:
parent
5b28d03216
commit
5e6c071576
2 changed files with 4 additions and 2 deletions
|
@ -904,10 +904,12 @@ def settings_content_get(v):
|
|||
|
||||
@app.post("/settings/name_change")
|
||||
@limiter.limit("1/second")
|
||||
@is_not_banned
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def settings_name_change(v):
|
||||
|
||||
if v.is_banned and not v.unban_utc: return {"error": "forbidden."}, 403
|
||||
|
||||
new_name=request.values.get("name").strip()
|
||||
|
||||
if new_name==v.username:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue