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

Function _complete_login_session

Scripts/ButSystem.py:15505–15533  ·  view source on GitHub ↗
(username: str, is_admin: bool)

Source from the content-addressed store, hash-verified

15503 except Exception:
15504 pass
15505 conn.execute("DELETE FROM group_voice WHERE id=?", (vid,))
15506 conn.commit()
15507 conn.close()
15508 raise ValueError("too_large")
15509 except Exception:
15510 conn.close()
15511 raise
15512
15513 conn.execute("UPDATE group_voice SET stored_path=? WHERE id=?", (stored_path, vid))
15514 conn.commit()
15515 conn.close()
15516 return vid, mime
15517
15518
15519 _save_plain_upload(file_storage, tmp_plain)
15520
15521 def finalize(ok: bool, err: Optional[str]):
15522 """finalize.
15523
15524Route handler or application helper.
15525
15526This docstring was expanded to make future maintenance easier.
15527
15528Args:
15529 ok: Parameter.
15530 err: Parameter.
15531
15532Returns:
15533 Varies.
15534"""
15535 c = db_connect()
15536 if ok and os.path.exists(stored_path):

Callers 2

loginFunction · 0.70
two_factorFunction · 0.70

Calls 7

now_zFunction · 0.70
ensure_profile_rowFunction · 0.70
get_profileFunction · 0.70
set_profileFunction · 0.70
_issue_trusted_deviceFunction · 0.70
_set_device_token_cookieFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected