Make `email` field updatable
ajharry69 opened this issue · comments
Updating email
should mark the account as unverified subsequently require verification.
can you send here a link of the code here
i wanna help you on this project
if you can tell me from where can I start to help you
@stevensamy27, thanks for your desire to help. To get started working on the issue, you can override update(...)
method in ProfileSerializer. Then before an actual update is done, you can compare the value of the email retrieved from validated_data
to value in the (existing) instance
. If they are not the same then you could update the user.is_verified
field to false when doing an update.
Relevant docs: https://www.django-rest-framework.org/api-guide/serializers/#saving-instances