E-mail Module:Double Opt-in
From ExtractValue Wiki
Contents |
Objective
- To have a double opt-in of a new User to Centricity
Specs v 1.0
Double Opt-in E-mails
Centricity requires a Double Opt In for a User account to be active.
- When a User registers, create a database entry in the User table for their double opt-in status: confirm = 0. Make sure there are no duplicate User entries.
- The module will then send out an opt-in e-mail using the Kohana module Swiftmaill
- Create a unique URL string that, when clicked, will set double opt-in the User (confirm = 1)
- On click, check that confirm = 0. If confirm = 1, then display an error message: "You have already confirmed you e-mail. Please login."
- If confirm = 0, this URL will also log the User into Centricity
- Use the Login Module in our application to perform the login.
- Login->Models/Login_BO->login( username, password, portal_id )
- If Opt-in is received, the User table will be update to show this is an Opt-in user, no more email ( confirm = 1 )
- If Opt-in is not received, then schedule a cron/schedule job to send one e-mail per day asking the user to opt-in.
- If a User has not Opt-in for seven days, the account will be marked as in-active ( status = 0 ).
- There will be another link which User can Opt-out
- If a User click on the opt-out, the account will be marked as in-active ( status = 0 )
- Create a unique URL string that, when clicked, will set double opt-in the User (confirm = 1)
Specs v 2.0
- If a User opts in, then they must be subscribed to Mailchimp per the specs in E-mail Module:API
