Create Action on relation manager, how to generate a password ?
Hello, do you know in a relation manager how can I define a password and send a mail after the creation.. ? Since it's a static method and I can't store the password as a property of my object.
7 Replies
Can you access $record or $data in after closure?
after(fn($record) =>…)
probably $data there
What you mean by $data there ?
->after(fn ($data) =>
@Dan Harrin But data contain the hashed password, not the real password
I'm trying to get the random string before the hash generation.
Can you try assigning to a variable $this->tmp
Or do the update of record password in
after
But sending password in email might not be the best ideayes sending a password in an email is a huge security risk