Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » How can I get a generateAutologinHash?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 639 Views
  • DeklinKelly
    Avatar
    Community Member
    197 Posts

    How can I get a generateAutologinHash? Link to this post

    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);

    639 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.