profile_pic_remove. Route handler or application helper. This docstring was expanded to make future maintenance easier. Returns: Varies.
()
| 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"]) |
| 11446 | def device_access(): |
| 11447 | """Request admin approval to trust this device for auto-login. |
| 11448 | Works only for accounts without 2FA enabled. |
nothing calls this directly
no test coverage detected