How do I enable :confirmable in Devise?

前端 未结 6 2209
我在风中等你
我在风中等你 2020-12-04 19:58

The newest version of Devise doesn\'t have :confirmable enabled by default. I already added the respective columns to the User model but cannot find any code examples of how

6条回答
  •  攒了一身酷
    2020-12-04 20:24

    For DRY, you can also put mailer config in config/initializers/mail.rb like:

    ActionMailer::Base.smtp_settings = {
        :address              => "smtp.gmail.com",
        :port                 => 587,
        :domain               => '[redacted]',
        :user_name            => '[redacted]',
        :password             => '[redacted]',
        :authentication       => 'plain',
        :enable_starttls_auto => true  }
    

提交回复
热议问题