-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
client/api: update user db email function #1498
client/api: update user db email function #1498
Conversation
update user db email
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes.
|
client/src/api/UserApiService.js
Outdated
const requestOptions = { | ||
method: 'PATCH', | ||
headers: this.headers, | ||
body: JSON.stringify({ email }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we throw in .toLowerCase() for good measure here Evan?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ofc!
…evan-1496-email-addr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, now lets get this attached to the user page so admins can update user emails!
Creates a new function updateUserEmail within client/src/api/UserApiService.js that patches the user's email in the database.
fixes #1496