Generate link_token when new subscriber is created

This commit is contained in:
Amine Ben hammou
2019-09-03 11:03:17 +01:00
committed by Jack Kitterhing
parent 4edde1636f
commit 042213d5aa

View File

@ -781,6 +781,7 @@ class Subscriber extends Model {
'first_name' => '',
'last_name' => '',
'unsubscribe_token' => Security::generateUnsubscribeToken(self::class),
'link_token' => Security::generateRandomString(32),
'status' => (!$settings->get('signup_confirmation.enabled')) ? self::STATUS_SUBSCRIBED : self::STATUS_UNCONFIRMED,
];
foreach ($required_field_default_values as $field => $value) {