Devise: Is it possible to NOT send a confirmation email in specific cases? (even when confirmable is active)?

Actually it's quite easy once I dig a little deeper. Just override one method in your User model (or whatever you are using): Callback to overwrite if confirmation is required or not. Def confirmation_required?!

Confirmed? End Put your conditions and job's done!Alex.

Actually it's quite easy once I dig a little deeper. Just override one method in your User model (or whatever you are using): # Callback to overwrite if confirmation is required or not. Def confirmation_required?!

Confirmed? End Put your conditions and job's done!Alex.

I was able to do something similar with the functions: registrations_controller. Rb def build_resource(*args) super if session:omniauth # TODO -- what about the case where they have a session, but are not logged in? @user.

Apply_omniauth(session:omniauth) @user. Mark_as_confirmed # we don't need to confirm the account if they are using external authentication # @user. Valid?

End end And then in my user model: user. Rb def mark_as_confirmed self. Confirmation_token = nil self.

Confirmed_at = Time. Now end.

I don't know if Devise added this after the other answers were submitted, but the code for this is right there in confirmable. Rb: # If you don't want confirmation to be sent on create, neither a code # to be generated, call skip_confirmation! Def skip_confirmation!Self.

Confirmed_at = Time. Now end.

Actually it's quite easy once I dig a little deeper. Just override one method in your User model (or whatever you are using).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions