Skip to main content

Avoid devise automatic sign-in after email confirmation

General • Asked by Bruno Wego

After email confirmation, devise automatic sign-in users, how configure devise to avoid that?

# devise.rb
Devise.setup do |config|
  config.mailer_sender = 'nore[email protected]'
end
# Gemfile
...
gem 'omniauth', '~> 1.3.1'
gem 'devise', '~> 4.2.0'
gem 'devise_token_auth', '~> 0.1.39'

Thanks!


I posted this doubt on stackoverflow.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.