Skip to content
This repository was archived by the owner on Jun 19, 2026. It is now read-only.

feat: add login anomaly alerts#1067

Open
tungdd2710 wants to merge 1 commit into
rohitdash08:mainfrom
tungdd2710:feat/login-anomaly-alerts
Open

feat: add login anomaly alerts#1067
tungdd2710 wants to merge 1 commit into
rohitdash08:mainfrom
tungdd2710:feat/login-anomaly-alerts

Conversation

@tungdd2710

Copy link
Copy Markdown

Summary

Implements login anomaly detection and suspicious activity alerts for #124.

  • records hashed IP/user-agent fingerprints on successful login
  • flags new networks and new devices against recent login history
  • creates stored security alerts with read/unread handling
  • returns a login security alert payload and shows a destructive warning toast in the frontend
  • documents the API in OpenAPI and README
  • makes backend tests hermetic with an in-memory Redis double

Validation

  • uv run --python 3.11 --with-requirements requirements.txt python -m pytest -q
  • uv run --python 3.11 --with-requirements requirements.txt black --check app tests
  • uv run --python 3.11 --with-requirements requirements.txt flake8 app tests
  • npm test -- SignIn.test.tsx
  • npm run lint
  • npm run build

Closes #124.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login anomaly detection & suspicious activity alerts

1 participant