I use devise (2.0.4) to configure custom login and login functions. Now I want the user to be able to log in after registration. The event will send a confirmation email. Just check "This user is not verified." How to setup?
I found this to solve the problem as well. Which one to choose?
def active_for_authentication? true end
Try adding the overridden method confirmation_required?directly to your user model:
confirmation_required?
class User < ActiveRecord::Base ... def confirmation_required? false end end