-
Notifications
You must be signed in to change notification settings - Fork 207
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
Can't update the email address ! #374
Comments
Hi @MidouWebDev |
@Leopold-V thanks bro I will check this with @PraveenMalethia |
An addition to this. Looking at the code it seems like the issue is that the 'api/users/profile_update/' endpoint, only updates the fields that are in the UserProfile model, and since the actual email is part of the django user model, it's not being updated. |
Yeah, Thanks |
Oh, I see , will look at that ! |
i have updated the view to also modify the email field, which is of the default user model provided by Django ! |
@MidouWebDev Assign it to me, I'll start working on this tomorrow |
@mani-barathi okey, thanks ! |
@MidouWebDev There is nothing to change in the frontend regarding the email update. @PraveenMalethia what's your thought on this? |
check the |
@PraveenMalethia Email is not received in the |
Looks like the email update API is already working on my side? @PraveenMalethia |
I get that. The backend is updating the email but it's not sending the updated email back in the response. Because of that we are not able to update the email with new email in front-end. |
Okay, i get that @mani-barathi . A temporary solution would be to monitor success (in .then) where the API call is being made from and set the email to the entered email. |
@MidouWebDev should I implement the temporary fix suggested by @okumujustine |
That will be great, @Mr-spShuvo you could assign @mani-barathi on this if it's okay. |
Backend is updated to return updated email in response. Now you can update the frontend! |
@mani-barathi , you are working on this !? |
@okumujustine I did make a simple temporary change, but if you what to take this issue go ahead and do it. |
Preflight Checklist
Describe the bug
I can't update my email address in the profile settings
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected to be able to update my email address like for the avatar
Screenshots
The text was updated successfully, but these errors were encountered: