citizenlabsgr / adopt-a-drain

Deploy an Adopt-a-Drain program for the Grand River watershed.
https://lgrow-staging.herokuapp.com
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Verify Account with Text-message or Email #164

Open Wilfongjt opened 5 years ago

Wilfongjt commented 5 years ago

Problem

An individual can adopt an unlimited number of storm drains.

Solution

Complicate the new account process by adding a required response/confirmation before enable a new account. Confirmation sent to phone or email.

Tests

cara-lgrow commented 5 years ago

using email or phone confirmation is ok with us. We do not want to collect phone numbers if the text verification holds onto that data.

softwaresteph commented 5 years ago

I would suggest the phone number option be a separate enhancement. It's an option I would choose myself for convenience, but adding the framework for SMS is a much larger project than leveraging the existing process for emails.

That being said, I don't think it's a problem to ask for a phone number for verification and text it without permanently storing it.

softwaresteph commented 5 years ago

Database Changes

Code Changes

Tests

  1. User clicks "sign up" and confirmation email is sent, then dialog box is popped up.
  2. If a user's email is not confirmed, button is not enabled and text shows "Email confirmation required"
  3. Following a confirmation URL changes user's status to confirmed in the database
  4. If a user's email is confirmed, button says "Adopt!" and is clickable.

Email Confirmation Dialog box text (Rough Draft)

Before adopting any drains, you need to confirm your email address! This is to confirm your identity and so we can send you periodic reminders about your adopted drain. Please follow the steps in the email (Subject: "Confirm your email").

If you didn't receive the confirmation email, please check your Spam folder, Bulk Mail folder, Social Tab, or Promotions Tab.

If your email still isn't there, add "TBD@lgrow.com" to your address book and request a new confirmation email below.

Click Here to send a new confirmation email

Email text (Rough Draft)

Cara with LGROW to approve the final draft Cara will provide the welcome paragraphs for this email #214

(reuse header) Hi (First Name), To confirm your email address, please click the button below. (Confirm Button)

Thanks! (reuse signature)

Questions / Open Issues

  1. Can a User update their email address? Shouldn't we re-confirm?
cara-lgrow commented 5 years ago

I don't want the email to get too long, so let's go with this:

(reuse header) Hi (First Name), To confirm your email address, please click the button below. (Confirm Button)

Thanks , (first name), for your interest in adopting a drain in the Lower Grand River Watershed. Once you have clicked the button above, and your email is confirmed, please adopt a drain!

(reuse signature)