When an admin creates a new account (admin/people/create), they're prompted to enter a password for the account. My client wants it to be that when an account is created in the back end, the admin doesn't have to enter a password, but the user is sent a notification message with a one-time log-in link and can then set a password after logging in using that. What's the best way to achieve something like this?
I've thought of maybe altering the form to set the #default_value
of the password fields to a random password and then setting '#access' => FALSE
, but I'm not sure if that's the best way to go about it.