Commit Graph

29 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 40eef9822c finsh async image generation 1 year ago
ytqh d85267d5e1 impl user generate image 1 year ago
ytqh 2c7c76aec3 add user gen image 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 43a3f90401 fix end user auth check 1 year ago
ytqh 5c04969714 finish get user list 1 year ago
ytqh b59c856f29 bugfix: simplify major check logic 1 year ago
ytqh 7a37c58b2b bugfix: fix major check logic 1 year ago
ytqh 8edf88d071 add new user mark in validate 1 year ago
ytqh 806e2a6bb1 fix major check and update not success 1 year ago
ytqh b3a188e8a1 pyjwt will auto check exp 1 year ago
ytqh d32779b5a8 fix profile 1 year ago
ytqh 71bb24f569 impl user profile 1 year ago
ytqh 1e10517dcf optimize token validation 1 year ago
ytqh 085992e617 fix 1 year ago
ytqh b7916227e2 change path 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 2f19e4efdd change validate_app_token 1 year ago
ytqh b33f8fbecb format 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