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

Function _auth_rate_limited

webapp_modern.py:4630–4638  ·  view source on GitHub ↗
(ip)

Source from the content-addressed store, hash-verified

4628 'state': state,
4629 'message': message,
4630 'phase': phase,
4631 'timestamp': datetime.utcnow().isoformat() + 'Z'
4632 })
4633
4634 status_path = getattr(shared_data, 'pwnagotchi_status_file', os.path.join(shared_data.datadir, 'pwnagotchi_status.json'))
4635 os.makedirs(os.path.dirname(status_path), exist_ok=True)
4636
4637 try:
4638 with open(status_path, 'w', encoding='utf-8') as handle:
4639 json.dump(payload, handle, indent=2)
4640 except Exception as exc:
4641 logger.error(f"Failed to update Pwnagotchi status file: {exc}")

Callers 2

auth_loginFunction · 0.85
auth_recoverFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected