8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-16 00:13:12 +00:00

Fix #136 : Reactivate the welcome mail

This commit is contained in:
Maël Kervella 2018-06-22 21:41:15 +00:00
parent 998d093cac
commit 8ea85f88ce

View file

@ -1005,11 +1005,10 @@ class Club(User):
def user_post_save(**kwargs):
""" Synchronisation post_save : envoie le mail de bienvenue si creation
Synchronise le ldap"""
# is_created = kwargs['created']
is_created = kwargs['created']
user = kwargs['instance']
# TODO : remove if unnecessary
# if is_created:
# user.notif_inscription()
if is_created:
user.notif_inscription()
user.ldap_sync(
base=True,
access_refresh=True,