Skip to content
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

Add "Reset" button, and repurpose/hide "Disable" button for Mandatory OTP #83

Merged
merged 5 commits into from
Jun 9, 2024

Conversation

strouptl
Copy link
Collaborator

@strouptl strouptl commented Jun 4, 2024

@strzibny, I am interested in adding a Reset button and reporposing/hiding the Disable button. Changes as follows:

  • Add "Reset" button, which disables OTP, resets token secret, and redirects to otp_tokens#edit to re-enable with new token secret.
  • Repurpose the "Disable" button such that it preserves the existing OTP token (since the reset button accomplishes this functionality now)
  • Hide the "Disable" button for mandatory OTP

What do you think? Let me know if you agree, and I will add tests for the change.

@strzibny
Copy link
Collaborator

strzibny commented Jun 4, 2024

This will need a changelog entry

@strouptl
Copy link
Collaborator Author

strouptl commented Jun 4, 2024

Sure thing! I will add a changelog entry and update the test specs.

@strouptl strouptl force-pushed the hide_disable_mandatory_otp branch from f46de74 to 0615fb5 Compare June 4, 2024 19:26
@strouptl
Copy link
Collaborator Author

strouptl commented Jun 4, 2024

Good to go.

strouptl added 5 commits June 5, 2024 18:44
- update disable action to preserve existing OTP token;
- move disable button to bottom of otp_tokens#show page;
- add test to ensure that disable preserves existing token secrets;
- move existing token tests to disable_token for clarity;
@strouptl strouptl force-pushed the hide_disable_mandatory_otp branch from 45e1017 to 3cf94b9 Compare June 5, 2024 09:46
@strzibny strzibny merged commit 577bb67 into wmlele:master Jun 9, 2024
1 check passed
@strouptl strouptl deleted the hide_disable_mandatory_otp branch June 9, 2024 17:46
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.

2 participants