in create profile, set password in auth table
diff --git a/setup/doctype/setup_control/setup_control.py b/setup/doctype/setup_control/setup_control.py
index 1eca582..2feb7a2 100644
--- a/setup/doctype/setup_control/setup_control.py
+++ b/setup/doctype/setup_control/setup_control.py
@@ -231,7 +231,8 @@
pr.name = pr.email = user_email
pr.enabled = 1
pr.save(1)
- if pwd: webnotes.conn.sql("UPDATE `tabProfile` SET password=PASSWORD(%s) WHERE name=%s", (pwd, user_email))
+ if pwd:
+ webnotes.conn.sql("UPDATE `__Auth` SET password=PASSWORD(%s) WHERE user=%s", (pwd, user_email))
self.add_roles(pr)
def add_roles(self, pr):