fart
This commit is contained in:
parent
0ffbbcc877
commit
0ed85d504d
1 changed files with 0 additions and 4 deletions
|
@ -709,20 +709,16 @@ def settings_css(v):
|
||||||
@app.get("/settings/profilecss")
|
@app.get("/settings/profilecss")
|
||||||
@auth_required
|
@auth_required
|
||||||
def settings_profilecss_get(v):
|
def settings_profilecss_get(v):
|
||||||
|
|
||||||
if not v.patron : return f"You must be a {patron} to set profile css."
|
|
||||||
return render_template("settings_profilecss.html", v=v)
|
return render_template("settings_profilecss.html", v=v)
|
||||||
|
|
||||||
@app.post("/settings/profilecss")
|
@app.post("/settings/profilecss")
|
||||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def settings_profilecss(v):
|
def settings_profilecss(v):
|
||||||
if not v.patron: return f"You must be a {patron} to set profile css."
|
|
||||||
profilecss = request.values.get("profilecss").strip().replace('\\', '').strip()[:4000]
|
profilecss = request.values.get("profilecss").strip().replace('\\', '').strip()[:4000]
|
||||||
v.profilecss = profilecss
|
v.profilecss = profilecss
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
return render_template("settings_profilecss.html", v=v)
|
return render_template("settings_profilecss.html", v=v)
|
||||||
|
|
||||||
@app.post("/settings/block")
|
@app.post("/settings/block")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue