I have a survey application. I create users for all the participants that are invited (makes it easy if they anwser the question that there is a user added to the database type).
But I dont want people to have to login. I want them to send a link with a unique id in it and allow them to login using that and start the survey.
But I am not able to login a user without a password. The only way I know how I could do this is save a table with unique id’s and set them as password and pass it along in the link. And for regular users redirect them to a login.
As an example, I will use the uniq_id as you wish…
Get the uniq_id you have as a parameter in your URL (I supose you know how to do it).
In your workflow, use the action “Assign a temp password to a user” to create a temporary password for this user. The result of this step is a new password.
In your workflow, use the action “Log the user in” to log the user. It is easy to find the e-mail thru a Search for. And the password, you will get from the previus step.
I create a login thing and add a email to it. It was fields email, code (not visible using privacy rules), code entered, email send (to show if email is send), processed (to show if code is processed), reset (to allow access), logged in (to keep record if login was successful)
workflow one generated a 6 digit code and sends a email
Then the user enters the code and I set it in the login thing
workflow two generated a password only if the code is correct
Then the user logs in
workflow three resets the temporary password and sets access_to_data to yes
I use access to data in the privacy rules to allow access to all data