MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / auth_change_password

Function auth_change_password

webapp_modern.py:4692–4705  ·  view source on GitHub ↗

Change the user's password.

()

Source from the content-addressed store, hash-verified

4690
4691def _parse_iso_timestamp(value: Optional[str]) -> Optional[datetime]:
4692 if not value:
4693 return None
4694 try:
4695 normalized = value.replace('Z', '+00:00')
4696 parsed = datetime.fromisoformat(normalized)
4697 if parsed.tzinfo is None:
4698 parsed = parsed.replace(tzinfo=timezone.utc)
4699 return parsed
4700 except Exception as exc:
4701 logger.debug(f"Failed to parse Pwnagotchi status timestamp '{value}': {exc}")
4702 return None
4703
4704
4705def _write_pwn_status_file(state: str, message: str, phase: str = 'dashboard', extra: Optional[dict] = None) -> dict:
4706 payload = _read_pwn_status_file()
4707 payload.update(extra or {})
4708 payload.update({

Callers

nothing calls this directly

Calls 2

change_passwordMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected