MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / profile_pic_remove

Function profile_pic_remove

Scripts/ButSystem.py:11430–11445  ·  view source on GitHub ↗

profile_pic_remove. Route handler or application helper. This docstring was expanded to make future maintenance easier. Returns: Varies.

()

Source from the content-addressed store, hash-verified

11428 conn.commit()
11429 conn.close()
11430
11431 try:
11432 PENDING_QUEUE.put_nowait(u1)
11433 except Exception:
11434 pass
11435
11436 flash("Request sent. Wait for admin approval.")
11437 return redirect(url_for("login"))
11438
11439 return render_template("signup.html", title="Request Access")
11440
11441# ---------------------------
11442# Device auto-login approval flow
11443# ---------------------------
11444
11445@app.route("/device_access", methods=["GET", "POST"])
11446def device_access():
11447 """Request admin approval to trust this device for auto-login.
11448 Works only for accounts without 2FA enabled.

Callers

nothing calls this directly

Calls 2

remove_profile_picFunction · 0.70
current_userFunction · 0.70

Tested by

no test coverage detected