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

Function settings_security

Scripts/ButSystem.py:11132–11158  ·  view source on GitHub ↗

Security settings page (2FA security questions, UI preferences).

()

Source from the content-addressed store, hash-verified

11130 t, s = norm_title(title or "Untitled")
11131 out.append({
11132 "title": t or "Untitled",
11133 "url": link,
11134 "source": s or source,
11135 "topic_key": topic_key,
11136 "topic": topic_label,
11137 "published": pub or "",
11138 })
11139
11140 # RSS 2.0
11141 try:
11142 channel = root.find("channel")
11143 if channel is not None:
11144 for item in channel.findall("item")[:35]:
11145 title = txt(item.find("title")) or "Untitled"
11146 link = txt(item.find("link"))
11147 pub = txt(item.find("pubDate")) or txt(item.find("date"))
11148 push_item(title, link, pub)
11149 if out:
11150 return out
11151 except Exception:
11152 pass
11153
11154 # Atom
11155 try:
11156 ns = {"a": "http://www.w3.org/2005/Atom"}
11157 for entry in root.findall("a:entry", ns)[:35]:
11158 title = txt(entry.find("a:title", ns)) or "Untitled"
11159 link_el = entry.find("a:link", ns)
11160 link = ""
11161 if link_el is not None:

Callers

nothing calls this directly

Calls 3

current_userFunction · 0.70
get_user_securityFunction · 0.70
get_user_prefsFunction · 0.70

Tested by

no test coverage detected