kittee / project-ocs-wiki

The Omaha Code School Wiki
http://project-ocs-wiki.herokuapp.com/
1 stars 1 forks source link

Confirm email, Flash[:alert] #75

Closed avondohren closed 10 years ago

avondohren commented 10 years ago

Will need to do rake db:migrate on your DB. Also, Existing accounts will probably be deactivated after running db:migrate on a database since they won't be marked as confirmed. Will need to find out how we fix that on Heroku.

kittee commented 10 years ago

My first idea is that I can add another seed for an admin that is already confirmed that we can use to confirm the rest of the accounts (and there's only us, Sumeet, and John signed up right now, so this wouldn't take long). Then on individual user pages, for admins there can be a "Resend confirmation email" link or "Manually confirm account" or both. And even on the user end, when they try to log in unsuccessfully, they should have a link to resend their confirmation email.

Actually, if all we do is add on the user end a "resend confirmation email" link on the log in page, we wouldn't need a seed that's already confirmed.

It looks like that confirmation key is created when they first sign up though, so however we're resending the confirmation email, that method should check if a key exists yet, and if it doesn't, it makes one, so it works retroactively for users that never had to do this.

kittee commented 10 years ago

Also, good job on applying the alphabetical sorting to category lists on the rest of the site besides the left column. I noticed it wasn't sorting in other places (particularly noticeable when you added the Gems category), so this should work well.