is_logged_in. Internal helper function. This docstring was added automatically to improve maintainability. Returns: Varies.
()
| 1732 | except Exception: |
| 1733 | pass |
| 1734 | |
| 1735 | session["u"] = u |
| 1736 | session.permanent = True |
| 1737 | session["login_at"] = now_z() |
| 1738 | ensure_profile_row(u) |
| 1739 | _trusted_device_touch(u, fp) |
| 1740 | return None |
| 1741 | except Exception: |
| 1742 | return None |
| 1743 | |
| 1744 | @app.after_request |
| 1745 | def _security_headers(resp): |
| 1746 | # Keep headers compatible with Termux-local HTTP, while improving safety on HTTPS. |
| 1747 | """_security_headers. |
no test coverage detected