On my site, when an admin creates an account for another user, it creates a random password. Is it possible to send this random password variable to Sendgrid?
When setting up the workflow I cant seem to refer back to “result of step 1” and grab the password.
All my emails go via Sendgrid bar this one so would be nice to finish the platform off with styled emails.
So I should create a secondary forget password page and then email that link to the user in the email. Asking them to set their own password although their account has already been created for them.
That would be possible, for better UX I would do it this way:
On creation of the user, create a random string (e.g. sdfsfdn123asdf) and save it in a user field. Then send a link to a page especially for setting up the password in the mail, e.g. testpage.com/set_pw?code=sdfsfdn123asdf.
On the page, load the code from the url and search for the user with the code value. Let them then set the password and delete the code from the user afterwards, so it can’t be done twice.