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

Function is_logged_in

Scripts/ButSystem.py:1734–1744  ·  view source on GitHub ↗

is_logged_in. Internal helper function. This docstring was added automatically to improve maintainability. Returns: Varies.

()

Source from the content-addressed store, hash-verified

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
1745def _security_headers(resp):
1746 # Keep headers compatible with Termux-local HTTP, while improving safety on HTTPS.
1747 """_security_headers.

Callers 8

_csrf_protectFunction · 0.70
_security_headersFunction · 0.70
toggle_languageFunction · 0.70
wrapperFunction · 0.70
indexFunction · 0.70
device_accessFunction · 0.70
device_access_pollFunction · 0.70

Calls 1

current_userFunction · 0.70

Tested by

no test coverage detected