daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest May 16th, 2018 102 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top