Guest User

Untitled

a guest
Jan 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. config.lock_strategy = :failed_attempts
  2. config.unlock_strategy = :email
  3. config.maximum_attempts = 1
  4.  
  5. add_column :admin, :failed_attempts, :integer, :default => 3
  6. add_column :admin, :unlock_token, :string
  7. add_column :admin, :locked_at, :datetime
Add Comment
Please, Sign In to add comment