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

client/api: update user db email function #1498

Merged
merged 4 commits into from
Sep 8, 2023

Conversation

evanyang1
Copy link
Member

Creates a new function updateUserEmail within client/src/api/UserApiService.js that patches the user's email in the database.

fixes #1496

update user db email
@github-actions
Copy link

github-actions bot commented Sep 2, 2023

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.

git checkout -b evanyang1-evan-1496-email-addr development
git pull https://github.com/evanyang1/VRMS.git evan-1496-email-addr

const requestOptions = {
method: 'PATCH',
headers: this.headers,
body: JSON.stringify({ email }),
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ofc!

Copy link
Member

@trillium trillium left a 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!

@trillium trillium merged commit 258803d into hackforla:development Sep 8, 2023
5 checks passed
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.

Create a function within the client/src/api/UserApiService.js component that updates the user's email address
2 participants