Reload SSOwat configuration at user creation

This commit is contained in:
Kload 2013-12-19 18:01:10 +01:00
parent f2a1b35bfb
commit 4583d1afc8

View file

@ -144,6 +144,7 @@ def user_create(username, firstname, lastname, mail, password):
if yldap.add(rdn, attr_dict): if yldap.add(rdn, attr_dict):
os.system("su - " + username + " -c ''") os.system("su - " + username + " -c ''")
os.system('yunohost app ssowatconf > /dev/null 2>&1')
#TODO: Send a welcome mail to user #TODO: Send a welcome mail to user
win_msg(_("User successfully created")) win_msg(_("User successfully created"))
hook_callback('post_user_create', [username, mail, password, firstname, lastname]) hook_callback('post_user_create', [username, mail, password, firstname, lastname])