-
Notifications
You must be signed in to change notification settings - Fork 47
Add Security Check to Prevent User Enumeration #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis update standardizes error handling and logging across authentication and user management methods in the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant IEMRAdminController
participant IEMRAdminUserServiceImpl
Client->>IEMRAdminController: Request (e.g., Authenticate, Password Change)
IEMRAdminController->>IEMRAdminUserServiceImpl: Process Request
IEMRAdminUserServiceImpl-->>IEMRAdminController: Result or Exception
alt Success
IEMRAdminController-->>Client: Success Response
else Error
IEMRAdminController-->>Client: User-friendly Error Message
IEMRAdminController->>IEMRAdminController: Log Warning/Error
end
Possibly related PRs
Suggested reviewers
Poem
π Recent review detailsConfiguration used: CodeRabbit UI π Files selected for processing (1)
π§ Files skipped from review as they are similar to previous changes (1)
β° Context from checks skipped due to timeout of 90000ms (3)
β¨ Finishing Touches
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. πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| user.setFailedAttempt(user.getFailedAttempt() + 1); | ||
| user.setDeleted(true); | ||
| user = iEMRUserRepositoryCustom.save(user); | ||
| logger.warn("A user account was locked after reaching the limit of {} failed login attempts.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of giving a user account - change to "User Account has been locked...."
| user.setFailedAttempt(user.getFailedAttempt() + 1); | ||
| user.setDeleted(true); | ||
| user = iEMRUserRepositoryCustom.save(user); | ||
| logger.warn("A user account was locked after reaching the limit of {} failed login attempts.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
|


π Description
JIRA ID: AMM-1249
Please provide a summary of the change and the motivation behind it. Include relevant context and details.
β Type of Change
βΉοΈ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.
Summary by CodeRabbit
Bug Fixes
Style