SilverStripe\Newsletter\Model\Recipient::generateValidateHashAndStore
Generate an auto login token which can be used to reset the password, at the same time hashing it and storing in the database.
Signature
public function generateValidateHashAndStore([integer
$lifetime = 2] )
Parameters
$lifetime
— integer- The lifetime of the auto login hash in days (by default 2 days)
Line | Task |
---|---|
242+ | Make it possible to handle database errors such as a "duplicate key" error |