Skip to content

fix: 🐛 improve password confirmation prompt (fixes #1390) #1418

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

Merged
merged 2 commits into from
May 1, 2025

Conversation

srizzling
Copy link
Contributor

@srizzling srizzling commented Mar 24, 2025

Prior to this change:

  • The saml2aws configure command included a password repeater for confirmation, which was unnecessary as this process is not a sign-up flow. If users entered an incorrect password, they could simply re-initiate the configuration process. The password repeater also caused ambiguity when passwords did not match, leading to a poor user experience.
  • The console.go file contained a redundant error check for the err variable, which added unnecessary complexity to the code.

After this change:

  • The password repeater has been removed entirely from the saml2aws configure command. This simplifies the flow and eliminates the ambiguity caused by the repeater. If users enter an incorrect password, they can now restart the configuration process without confusion.
  • The redundant error check in console.go has been removed, simplifying the code and improving its readability.

fixes #1390

@srizzling srizzling changed the title fix: 🐛 improve password confirmation prompt (#1390) fix: 🐛 improve password confirmation prompt (fixes #1390) Mar 24, 2025
Copy link

@ary-b ary-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for taking the time to look into this team, I really appreciate it 😄 I agree that the password repeater could be removed, but not a big deal if it stays with the enhanced prompts. Cheers everyone!

Prior to this commit, the configure flow contained multiple if
statements, making the logic unnecessarily complex. Additionally, the
password repeater was included, which is not required as this process
is not a sign-up flow. The password repeater also caused ambiguity when
passwords did not match.

After this commit, The configure flow has been simplified by reducing
the number of if statements, making the logic more straightforward. The
password repeater has been removed entirely, as it is not needed. If the
user inputs the wrong password, they can simply re-initiate the
configure process.

fixes #1390

Signed-off-by: Sriram Venkatesh <sriram.venkatesh@versent.com.au>
Prior to this commit, The `console.go` file contained a duplicate error
check for the `err` variable, which was redundant and unnecessary.

After this commit, The duplicate error check has been removed,
simplifying the code and improving readability.

Signed-off-by: Sriram Venkatesh <sriram.venkatesh@versent.com.au>
@srizzling srizzling force-pushed the fix-ambigous-errors branch from 51dae7b to 0501c88 Compare April 30, 2025 03:49
@srizzling srizzling marked this pull request as ready for review April 30, 2025 03:59
Copy link

@RossRichardson RossRichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Acknowledging Password prompt now changed to Enter Password.

@srizzling srizzling merged commit a631e37 into master May 1, 2025
11 of 12 checks passed
@srizzling srizzling deleted the fix-ambigous-errors branch May 1, 2025 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve "saml2aws configure" CLI prompting
4 participants