Quantcast
Viewing all articles
Browse latest Browse all 42

Devise login succeed when not confirmed

Could you tell me how to integrate the confirmed? attribute into the session-login process?

I've set up a working app with devise with confirmable and authenticatable enabled...But I can log in with a user-model that isn't confirmed!

UPDATE

I've commented on the confirmable-section in my migration.

  # schema.rb  create_table "users", :force => true do |t|    t.string   "email",                                        :default => "", :null => false    t.string   "encrypted_password",            :limit => 128, :default => "", :null => false    t.string   "password_salt",                                :default => "", :null => false    t.string   "confirmation_token"    t.datetime "confirmed_at"    t.datetime "confirmation_sent_at"    ....  end# user.rbclass User < ActiveRecord::Base  # Include default devise modules. Others available are:  devise :database_authenticatable, :registerable,         :recoverable, :rememberable, :trackable, :validatable,          :confirmable, :lockable, :timeoutable, :token_authenticatable  ...end# routes.rbdevise_for :users, :controllers => { :passwords => "password_resets" } do  # this doesn't matter to my mentioned problem  get "instruction", :to => "password_resets#instruction", :path => "/users/password/instruction", :as => "instruction_user_password"end

Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>