enable lockable strategy for users
This commit is contained in:
parent
2abd054b0c
commit
6533711825
4 changed files with 15 additions and 7 deletions
|
@ -1,11 +1,11 @@
|
|||
class User < ActiveRecord::Base
|
||||
include Account
|
||||
|
||||
devise :database_authenticatable, :token_authenticatable,
|
||||
devise :database_authenticatable, :token_authenticatable, :lockable,
|
||||
:recoverable, :rememberable, :trackable, :validatable, :omniauthable
|
||||
|
||||
attr_accessible :email, :password, :password_confirmation, :remember_me, :bio,
|
||||
:name, :projects_limit, :skype, :linkedin, :twitter, :dark_scheme,
|
||||
:name, :projects_limit, :skype, :linkedin, :twitter, :dark_scheme,
|
||||
:theme_id, :force_random_password
|
||||
|
||||
attr_accessor :force_random_password
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue