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 Issue#1317 #1848

Merged
merged 2 commits into from
Dec 1, 2022
Merged

Fix Issue#1317 #1848

merged 2 commits into from
Dec 1, 2022

Conversation

dorj222
Copy link
Contributor

@dorj222 dorj222 commented Nov 22, 2022

What type of PR is this?

  • feature

What this PR does / why we need it:

Currently, one can delete their own admin account without getting any warning text and lock themselves out from the system. This PR aims to solve this problem by providing the user with some warning text if they try to delete their own account, and this feature will prevent the user from accidentally deleting their own account.

Screenshot Example:

Screen Shot 2022-11-22 at 9 42 13 PM

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #1317

Special notes for your reviewer:

  • the warning text will appear only for the user's own account whenever they try to delete it

Testing

I manually tested this feature on Chrome and Mozilla browsers.

Release Notes

(REQUIRED)

- the additional warning text will be prompted if the user attempts to delete their own account.

text
outlined
color="deep-orange"
>⚠️ Please note that you are trying to delete your own admin account!
Copy link

Choose a reason for hiding this comment

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

Should put this inside a language file so it's more easily translatable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback! I put the text inside the language file.

@hay-kot
Copy link
Collaborator

hay-kot commented Dec 1, 2022

Looks great thanks for the PR!

@hay-kot hay-kot merged commit 1c87a87 into mealie-recipes:mealie-next Dec 1, 2022
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.

[v1.0.0b] - You can delete your own admin account while logged in
3 participants