myapnea / myapnea.org

https://myapnea.org
MIT License
2 stars 2 forks source link

Add email confirmation for new sign-ups #962

Closed mrueschman closed 6 years ago

mrueschman commented 8 years ago

Given the rash of spam posts on the forum, it would be nice to email new users a link that they could click on to verify their accounts. Verifying by email would then "allow" the user to start posting on the forum.

remomueller commented 8 years ago

According to this, I think it's possible for us to make the email confirmation conditional:

http://stackoverflow.com/questions/4790685/devise-is-it-possible-to-not-send-a-confirmation-email-in-specific-cases-eve

In user.rb

  # Callback to overwrite if confirmation is required or not.
  def confirmation_required?
    !confirmed?
  end
remomueller commented 8 years ago

Looks like this may not currently be needed, removing from milestone.