Vinay1
October 9, 2023, 7:40am
1
this is how I am creating a new user, now i also want to set password to the user how can i set password to the user
i tried with new_user.password = password, but it is not working now how can i set the password of the user and is there any built-in method for creating a user ex: create_user()
bahaou
October 9, 2023, 10:29am
3
@Vinay1 you can use predefined function after creating the user:
from frappe.utils.password import update_password
update_password(name,new_password)
hsrai
September 20, 2024, 12:35am
4
Is it working?
I tried. code executed without any errro / warning.
Also tried via updating user using import through spreadsheet.
Import was successful.
But actually password is not updated in either case.
Can anyone drop some hint?
hsrai
September 20, 2024, 7:07am
5
Which field (and table) store the hashed password?