Fixing #1170: Changing email should change social profile gravatar email.

This commit is contained in:
Samuel Clay 2019-04-14 18:47:02 -04:00
parent fb51c29fe2
commit 6124b40bc7

View file

@ -181,6 +181,10 @@ class AccountSettingsForm(forms.Form):
if self.user.email != email:
self.user.email = email
self.user.save()
sp = MSocialProfile.get_user(self.user.pk)
sp.email = email
sp.save()
if old_password or new_password:
change_password(self.user, old_password, new_password)