Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.lock_strategy = :failed_attempts
- config.unlock_strategy = :email
- config.maximum_attempts = 1
- add_column :admin, :failed_attempts, :integer, :default => 3
- add_column :admin, :unlock_token, :string
- add_column :admin, :locked_at, :datetime
Add Comment
Please, Sign In to add comment