2

I wanna send mail to user confirms it, but it's not interesting by now to block users access, although would be amazing to have the control about who confirmed and who did not, and in the future make confirmation required.

Added the block below on my User model, but it makes devise not sending even a mail

  protected
  def confirmation_required?
    false
  end

Any suggestions?

Leonel Galán
  • 6,993
  • 2
  • 41
  • 60
Mauro Dias
  • 1,083
  • 1
  • 11
  • 23
  • Y shouldn't have to add anything to your *user.rb*, devise already provides a setting for you to do what you want, see my answer. – Leonel Galán Jun 30 '16 at 16:14

1 Answers1

3

You have to set config.allow_unconfirmed_access_for = nil on your devise.rb to allow unconfirmed access.

Leonel Galán
  • 6,993
  • 2
  • 41
  • 60
  • Source code is the best docs, a "nastier" solution is to set it up for `100.years`. – Leonel Galán Jun 30 '16 at 16:20
  • 1
    I know, but it's hard for maintainers to do it all. Submit a PR, Docs a re a good way to get started into contributing to Open Source. – Leonel Galán Jun 30 '16 at 16:25
  • of course... its not a critic, just told you I guessed that if it would be an option, it would be in this link, but wasn't, making me not giving this a try https://github.com/plataformatec/devise/wiki/How-To:-Add-:confirmable-to-Users#allowing-unconfirmed-access – Mauro Dias Jun 30 '16 at 16:33