Commit f6e56b3a authored by Baptiste Jonglez's avatar Baptiste Jonglez
Browse files

Update LDAP when email of a member changes

parent a775f3eb
......@@ -171,7 +171,9 @@ class Member(CoinLdapSyncMixin, AbstractUser):
# Do not perform LDAP query if no usefull fields to update are specified
# in update_fields
# Ex : at login, last_login field is updated by django auth module.
if update_fields and set(['username', 'last_name', 'first_name']).isdisjoint(set(update_fields)):
relevant_fields = {'username', 'last_name', 'first_name',
'organization_name', 'email'}
if update_fields and relevant_fields.isdisjoint(set(update_fields)):
return
# Fail if no username specified
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment