daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest May 16th, 2018 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gem 'devise'
  2. gem "devise_ldap_authenticatable", git: "git://github.com/cschiewek/devise_ldap_authenticatable.git"
  3. gem 'devise_security_extension', git: 'https://github.com/phatworx/devise_security_extension.git', branch: 'master'
  4.    
  5. devise :ldap_authenticatable, :registerable, :session_limitable, :timeoutable, :lockable, :trackable, :validatable, authentication_keys: [:username]
  6.    
  7. config.lock_strategy = :failed_attempts
  8. config.unlock_strategy = :none
  9. config.maximum_attempts = 3
  10. config.last_attempt_warning = true
  11.    
  12. - flash.each do |key, value|
  13.   - next if key == "timedout"
  14.   %div{ class: flash_class(key) }
  15.     %button.close{ "aria-hidden": "true", "data-dismiss": "alert", type: "button" } ×
  16.     = value
RAW Paste Data
Top