Welcome to our new JIRA instance! We migrated all OpenMRS ID accounts and issues to this new cloud instance. Please use your_openmrsid@id.openmrs.org as your e-mail to sign in.

SDK should prompt for the database logins again if invalid logins were entered

Description

None

Attachments

1
  • 08 Jan 2025, 12:03 PM

Activity

Show:

Ian Bacher January 8, 2025 at 9:27 PM

herman muhereza January 8, 2025 at 12:01 PM
Edited

PR at https://github.com/openmrs/openmrs-sdk/pull/324

sdkpasswordattempts.png


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:

herman muhereza January 8, 2025 at 5:35 AM

doesn’t this require more description, for example like after how many attempts should we finally call it and throw the mojoexception?

Fixed

Details

Assignee

Reporter

Priority

Created December 3, 2024 at 2:00 PM
Updated January 15, 2025 at 9:04 AM
Resolved January 8, 2025 at 9:27 PM

Flag notifications