How can I use generateAutologinHash?
From Page.php I want to create a new user and then send an email to the new user containing the password reset hash.
But I do not know how to generate or get the AutologinHash.
This does NOT work:
$newMember = new Member();
$newMember->Email = 'xyz@example.com';
$newMember->write();
$generateAutologinHash=$newMember->generateAutologinHash(7);