47 changed files with 10 additions and 20 deletions
@ -1,11 +0,0 @@ |
|||||||
class User < ActiveRecord::Base |
|
||||||
# Include default devise modules. Others available are: |
|
||||||
# :confirmable, :lockable, :timeoutable and :omniauthable |
|
||||||
devise :two_factor_authenticatable, :database_authenticatable, :registerable, |
|
||||||
:recoverable, :rememberable, :trackable, :validatable, |
|
||||||
:two_factor_authenticatable |
|
||||||
|
|
||||||
# Setup accessible (or protected) attributes for your model |
|
||||||
attr_accessible :email, :password, :password_confirmation, :remember_me |
|
||||||
# attr_accessible :title, :body |
|
||||||
end |
|
Binary file not shown.
@ -0,0 +1,7 @@ |
|||||||
|
class User < ActiveRecord::Base |
||||||
|
devise :two_factor_authenticatable, :database_authenticatable, :registerable, |
||||||
|
:recoverable, :rememberable, :trackable, :validatable, |
||||||
|
:two_factor_authenticatable |
||||||
|
|
||||||
|
has_one_time_password |
||||||
|
end |
@ -1,6 +1,6 @@ |
|||||||
# Be sure to restart your server when you modify this file. |
# Be sure to restart your server when you modify this file. |
||||||
|
|
||||||
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session' |
Dummy::Application.config.session_store :cookie_store, key: '_rails_app_session' |
||||||
|
|
||||||
# Use the database for sessions instead of the cookie-based default, |
# Use the database for sessions instead of the cookie-based default, |
||||||
# which shouldn't be used to store highly confidential information |
# which shouldn't be used to store highly confidential information |
Loading…
Reference in new issue