Commit Graph

3 Commits (59d2a8a2087186b6a1af76cc76c824523303911a)

Author SHA1 Message Date
k-brahma-claude f25af8430e style: convert unittest assertions to pytest style
Convert unittest-style assertions (assertEqual, assertTrue, etc.) to
pytest-style assertions to comply with project linting standards.

Applied via ruff --unsafe-fixes to ensure consistency.

 All 28 tests pass with pytest conversion
11 months ago
k-brahma-claude 1bdbbb7140 fix: resolve backend CI errors for MyPy and Ruff
- Fix PyPNGImage save() method call (remove format parameter)
- Fix return type annotation in is_mfa_required()
- Remove unused imports and reorder imports
- Update timezone imports from timezone to UTC
- Fix test assertions formatting

Frontend CI fixes to follow in subsequent commit

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
k-brahma-claude 34ce28cb3d feat: implement multi-factor authentication (MFA) support
This PR adds comprehensive MFA support to Dify, including:
- Two-factor authentication using TOTP
- Backup codes for account recovery
- MFA management in user settings
- Enhanced security for user accounts

Continuation of PR #22206 with improved implementation and tests.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago