Can I generate a password for users using vbo?
I have created a rule that creates users upon condition but I want all this users to have the same password.
Can I do it with a vbo i create for that users?
Can I generate a password for users using vbo?
I have created a rule that creates users upon condition but I want all this users to have the same password.
Can I do it with a vbo i create for that users?
Comments
Comment #1
bojanz commentedUsing VBO execute the "Execute arbitrary PHP script" action on users, and in it enter the following code:
You can also put that code in a custom action you write, of course.
Not sure if Rules has any code for handling passwords, so you'd have to create a feature request in their queue.
Rules could have a simple action that runs the value it gets through user_hash_password()....