Merge pull request #1674 from anandpdoshi/hotfix
Hook: setup_wizard_success
This commit is contained in:
commit
18144da755
@ -76,6 +76,7 @@ def setup_account(args=None):
|
||||
|
||||
frappe.clear_cache()
|
||||
frappe.db.commit()
|
||||
|
||||
except:
|
||||
traceback = frappe.get_traceback()
|
||||
for hook in frappe.get_hooks("setup_wizard_exception"):
|
||||
@ -83,6 +84,11 @@ def setup_account(args=None):
|
||||
|
||||
raise
|
||||
|
||||
else:
|
||||
for hook in frappe.get_hooks("setup_wizard_success"):
|
||||
frappe.get_attr(hook)(args)
|
||||
|
||||
|
||||
def update_user_name(args):
|
||||
if args.get("email"):
|
||||
args['name'] = args.get("email")
|
||||
|
Loading…
Reference in New Issue
Block a user