mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 20:03:11 +00:00
Merge branch 'reactivate_welcome_mail' into 'master'
Fix #136 : Reactivate the welcome mail Closes #136 See merge request federez/re2o!178
This commit is contained in:
commit
460784664f
1 changed files with 3 additions and 4 deletions
|
@ -1005,11 +1005,10 @@ class Club(User):
|
||||||
def user_post_save(**kwargs):
|
def user_post_save(**kwargs):
|
||||||
""" Synchronisation post_save : envoie le mail de bienvenue si creation
|
""" Synchronisation post_save : envoie le mail de bienvenue si creation
|
||||||
Synchronise le ldap"""
|
Synchronise le ldap"""
|
||||||
# is_created = kwargs['created']
|
is_created = kwargs['created']
|
||||||
user = kwargs['instance']
|
user = kwargs['instance']
|
||||||
# TODO : remove if unnecessary
|
if is_created:
|
||||||
# if is_created:
|
user.notif_inscription()
|
||||||
# user.notif_inscription()
|
|
||||||
user.ldap_sync(
|
user.ldap_sync(
|
||||||
base=True,
|
base=True,
|
||||||
access_refresh=True,
|
access_refresh=True,
|
||||||
|
|
Loading…
Reference in a new issue