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

fix: password reset link not shown in admin pages #3142

Conversation

Kuchenpirat
Copy link
Collaborator

@Kuchenpirat Kuchenpirat commented Feb 10, 2024

What type of PR is this?

  • bug

What this PR does / why we need it:

Shows the password reset link in the GUI at the page /admin/users/_id. This is necessairy because if the users connects via http copyToClipboard is not availlable. Furthermore it makes it a bit clearer that a link has been generated instead of just adding a little copy button.

Screenshots:

Before After
not active image image
active image image

Which issue(s) this PR fixes:

Fixes #3141

Special notes for your reviewer:

None

Testing

Manual testing

@Kuchenpirat Kuchenpirat changed the title fix password reset link not shown fix: password reset link not shown in admin pages Feb 10, 2024
Copy link
Collaborator

@boc-the-git boc-the-git left a comment

Choose a reason for hiding this comment

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

LGTM.

My understanding @Kuchenpirat is that despite the button wording "cancel", all that is happening is the URL is being hidden from the screen?
I'll allow you to merge after seeing this message 👍

@Kuchenpirat
Copy link
Collaborator Author

Not exactly. It overwrites the reset link with an empty string.

This is the same implementation we use for the invite link generation.

@Kuchenpirat Kuchenpirat enabled auto-merge (squash) February 10, 2024 11:06
@Kuchenpirat Kuchenpirat merged commit 1450d6f into mealie-recipes:mealie-next Feb 10, 2024
9 checks passed
@Kuchenpirat Kuchenpirat deleted the fix-password-reset-link-not-shown branch March 25, 2024 16:54
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.

[BUG] - Cannot copy to clipboard over HTTP, so no way to access password reset link.
2 participants