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

Modifying a user's information #1

Open
RmnRss opened this issue Jul 15, 2020 · 0 comments
Open

Modifying a user's information #1

RmnRss opened this issue Jul 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@RmnRss
Copy link
Member

RmnRss commented Jul 15, 2020

Is your feature request related to a problem? Please describe
Currently, there is no possibility to edit any of the user's information, meaning if a user has lost his password or wants to change his email there is no way to remedy that.

The username field should remain unique and immutable.

Describe the solution you'd like
A possibility to edit a user's information through the API.

Describe alternatives you've considered

  • It could be done by adding the possibility to make a 'PUT' request on /users/username with the necessary credentials in headers, and the field to edit in the body. Currently, only the email field is editable.

    • For passwords, if the body contains a password field then check if it is valid and identical to the current one and then replace it or not.
  • Adding a 'POST' endpoint at /users/resetPassword that would send an expiring link to a given email for him/her to change its password.

  • Adding a 'POST' endpoint at /users/changePassword that would require credentials, the current password and the new one. Check their validity then replace it or not.

@RmnRss RmnRss added the enhancement New feature or request label Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant