You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The confirmation mail is sent automatically when a user is created. But I need to send the mail through code manually after completing a few more steps.
I can't able to prevent the confirmation mail from sending.
User model
class User < ActiveRecord::Base
include DeviseTokenAuth::Concerns::User
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
:confirmable
before_create :skip_confirmation_notification!
Note: If I try to use skip_confirmation! it works perfectly without any flaw. But I don't need that functionality because I want to confirm the users only through the confirmation link sent to their mail.
The text was updated successfully, but these errors were encountered:
Try removing :confirmable from the list of devise methods at the top of your User model, then removing the before_create :skip_confirmation_notification!.
The basic confirmable functionalities as such like sending mail, updating confirmable columns in the db are working perfectly. I do not want to interrupt the existing functionalities. But only need to delay sending the notification so that this awesome gem is fully utilised.
The confirmation mail is sent automatically when a user is created. But I need to send the mail through code manually after completing a few more steps.
I can't able to prevent the confirmation mail from sending.
User model
Note: If I try to use skip_confirmation! it works perfectly without any flaw. But I don't need that functionality because I want to confirm the users only through the confirmation link sent to their mail.
The text was updated successfully, but these errors were encountered: