Change the user's password.
()
| 4690 | |
| 4691 | def _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 | |
| 4705 | def _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({ |
nothing calls this directly
no test coverage detected