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 to close user account #3244

Open
3 tasks
dtslvr opened this issue Apr 6, 2024 · 3 comments · May be fixed by #3444
Open
3 tasks

Add to close user account #3244

dtslvr opened this issue Apr 6, 2024 · 3 comments · May be fixed by #3444
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dtslvr
Copy link
Member

dtslvr commented Apr 6, 2024

A user should be able to close their account.

close-account

Tasks

  • Add new endpoint DELETE api/v1/user (without :id) with accessToken: string and validate it
  •  Introduce new permission deleteOwnUser and assign it to the USER role
  • Extend UserAccountSettingsComponent by a form if permission deleteOwnUser is present and let the user confirm this action
    confirm($localize`Do you really want to close your account?`);
@dtslvr dtslvr added enhancement New feature or request help wanted Extra attention is needed labels Apr 6, 2024
@dtslvr dtslvr changed the title Add support to close user account Add to close user account Apr 6, 2024
@SirZemar
Copy link
Contributor

Hello @dtslvr! I would like to work on this one.

@SirZemar
Copy link
Contributor

Thanks. I have one question @dtslvr. Do we push the locales messages files in the same branch?

@dtslvr
Copy link
Member Author

dtslvr commented May 30, 2024

Do we push the locales messages files in the same branch?

It is enough to provide the english labels with $localize`Do you really want to close your account?` (controller) and the i18n directive in templates.

From time to time I will run yarn extract-locales to generate the localization files.

@SirZemar SirZemar linked a pull request May 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants