vkoves / carpe

Scheduling for the modern age - an UNMAINTAINED indigoBox project
http://carpe-uno.herokuapp.com
0 stars 0 forks source link

Add Email Confirmation & Style Devise Emails #409

Closed vkoves closed 5 years ago

vkoves commented 5 years ago

Description

This PR adds email confirmation using Devise's confirmable, and also does the following:

:warning: Release Note

Once this is released, we must run:

User.all.each do |user|
  user.send_confirmation_instructions
end

I believe this will send the confirmation email to all existing users, as otherwise they will be locked out of their accounts without explanation. The good news is it will tell them if they try to sign in and there's a resend button on the login page.

Screenshots

Welcome Email Confirmation Email Reset Password Email
Screenshot from 2019-03-31 17-57-14 Screenshot from 2019-03-31 17-58-54 Screenshot from 2019-03-31 17-57-36

This PR resolves #103.

Type of Pull Request

Based on the contributor's guide, this PR is of type:

Requestor Checklist

Requestor: Put an x in all that apply. You can check boxes after the PR has been made.

Reviewer: If you see an item that is not checked that you believe should be, comment on that as part of your review.

How This Has Been Tested

Tested with an existing account and a new account to confirm that email confirmation is working and that the little script I will run in Heroku will work. Please check my work and test it yourself too though!

vkoves commented 5 years ago

@Watercycle - it would help if I had run the tests and not just trusted CI then, wouldn't it :sweat_smile: I'll look into that and fix the typo

vkoves commented 5 years ago

@Watercycle - I have fixed the typo, fixed test and linting issues, and merged in dev with your CI fixes, so CI now passes :smiley: