Commit Graph

13 Commits (816ea2457184c6ed7c71de9c6181ee0d0eb3b3bf)

Author SHA1 Message Date
ytqh 816ea24571 Apply code formatting with ruff formatter
- Fixed formatting issues across 23 files
- Ensured all linting checks pass with uv run ruff check
- Code now follows consistent formatting standards
- No functional changes, only formatting improvements

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

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh f1080f060c feat: Implement open email registration with conditional organization assignment
- Remove email domain validation requirement from registration endpoint
- Implement conditional organization assignment logic (auto-assign if domain match, else NULL)
- Allow users to register with any email address without requiring organization match
- Maintain backward compatibility for domain-matched emails (auto-assign to organization)
- Remove unused OrganizationNotFoundError import and fix code style

Key Changes:
- Modified EmailCodeLoginApi to allow registration without organization assignment
- Users with matching email domains are auto-assigned to organizations
- Users without matching domains can register and use platform with organization_id=NULL
- Prepared foundation for future organization invitation system

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

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh 01c6681fa1 Merge remote-tracking branch 'dify/main' into main 1 year ago
ytqh 7fc884acdc Refactor API tags for authentication and user profile endpoints to use 'service' prefix instead of 'user'. This change improves clarity and consistency in the API structure. 1 year ago
ytqh a9f06f219b fix login error 1 year ago
ytqh 7102fe396c add login check in service api auth 1 year ago
ytqh 8edf88d071 add new user mark in validate 1 year ago
ytqh d817b86846 config docker env 1 year ago
ytqh c06c5d2918 use config to setup default id and debug email code 1 year ago
ytqh c68c674413 add service auth api in load user from request lib 1 year ago
ytqh 6cb0287069 feat: finish send with login in email 1 year ago
ytqh b8a243c5f0 implement email auth 1 year ago
ytqh 43361f75e7 feat: use seperate controllers 1 year ago