Details
-
Type: Sub-task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.12.0-b1
-
Component/s: Plugins, Staff Interface
-
Labels:None
Description
Create a new table to track email verifications
email_verifications
- contact_id INT(10) UNSIGNED NOT NULL
- email VARCHAR(255) NOT NULL
- token VARCHAR(255) NOT NULL
- verified TINYINT(1) NOT NULL DEFAULT 0
- redirect_url VARCHAR(255) NULL DEFAULT NULL
- date_sent DATETIME NOT NULL
- unique index on contact_id, email
- index on contact_id
Create a new model EmailVerifications with the following methods: get, getByToken, add, edit, delete, verified
The add method should automatically generate a unique token based on the email