add disabled option to user#1351
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
WalkthroughThis PR adds a ChangesAccount Disablement Feature
Sequence DiagramsequenceDiagram
participant Client
participant AuthService
participant UserService
participant Database
Client->>AuthService: login(email, password)
AuthService->>UserService: findByEmail(email)
UserService->>Database: query User
Database-->>UserService: User { disabled: true/false, ... }
UserService-->>AuthService: user
alt user.disabled == true
AuthService-->>Client: ForbiddenException('Account Disabled')
else user.disabled == false
AuthService->>AuthService: comparePassword(password)
AuthService->>AuthService: generateToken()
AuthService-->>Client: { accessToken, ... }
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit