-
Notifications
You must be signed in to change notification settings - Fork 4
Description
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/usernamewith the necessary credentials in headers, and the field to edit in the body. Currently, only theemailfield is editable.- For passwords, if the body contains a
passwordfield then check if it is valid and identical to the current one and then replace it or not.
- For passwords, if the body contains a
-
Adding a
'POST'endpoint at/users/resetPasswordthat would send an expiring link to a given email for him/her to change its password. -
Adding a
'POST'endpoint at/users/changePasswordthat would require credentials, the current password and the new one. Check their validity then replace it or not.