These are chat archives for django/django
@iammiracle It is still the same concept, a person/admin/user can register/add employee with temporary password and simply add a signal on post_save method of employee model where you can write a logic of sending the temp pw via email. So an employee can access your app and change the their password accordingly.
But usually you just only need to send an email with url containing a hash (with expiration date/time) a link to their profile settings where they can change their password immediately else the hash will not work anymore in another visit depend to the expiration date/time defined. I think this is more secure and standard way.
password1 = User.objects.make_random_password()which will certainly be sent to the email of the registered person with a link in case he/she wants to change the password