SDK should prompt for the database logins again if invalid logins were entered
Description
None
Attachments
1
- 08 Jan 2025, 12:03 PM
is FF-depended by
Activity
Show:
Ian Bacher January 8, 2025 at 9:27 PM
herman muhereza January 8, 2025 at 12:01 PMEdited
PR at https://github.com/openmrs/openmrs-sdk/pull/324
The changes in the pull request above make sure that instead of failing immediately when database credentials are not correct, the sdk now:
Allows up to 3 attempts to enter correct credentials
Prompts the user for new username/password after each failed attempt
Shows clear feedback about which attempt they're on (e.g., "attempt 2 of 3")
Throws a MojoExecutionException only after all 3 attempts fail
cc: @Wikum Weerakutti
herman muhereza January 8, 2025 at 5:35 AM
@Wikum Weerakutti doesn’t this require more description, for example like after how many attempts should we finally call it and throw the mojoexception?
Fixed
Details
Details
Assignee
herman muhereza
herman muherezaReporter
Wikum Weerakutti
Wikum WeerakuttiPriority
Created December 3, 2024 at 2:00 PM
Updated January 15, 2025 at 9:04 AM
Resolved January 8, 2025 at 9:27 PM
Merged at https://github.com/openmrs/openmrs-sdk/commit/eabdcbd40b293fa72e0b1845c68929a4efaa8be7. Thanks @herman muhereza!