Update settings.py
This commit is contained in:
parent
6ff6ba299a
commit
1595e92ec0
1 changed files with 2 additions and 2 deletions
|
@ -980,7 +980,7 @@ def settings_name_change(v):
|
|||
return redirect("/settings/profile")
|
||||
|
||||
@app.post("/settings/song_change")
|
||||
@limiter.limit("1/second")
|
||||
@limiter.limit("5/day;1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def settings_song_change(v):
|
||||
|
@ -1081,4 +1081,4 @@ def settings_title_change(v):
|
|||
g.db.add(v)
|
||||
g.db.commit()
|
||||
|
||||
return redirect("/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue