Sha256: e26cef21e2aaaf524cdd5e9b699155da84fb38a2294a7d81e512cfa868645429

Contents?: true

Size: 154 Bytes

Versions: 9

Compression:

Stored size: 154 Bytes

Contents

Warden::Manager.after_authentication do |record, warden, options|
  warden.session(options[:scope])[:password_expired] = record.need_change_password?
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
vizjerai-devise_security_extension-0.3.8 lib/devise_security_extension/hooks/password_expirable.rb
vizjerai-devise_security_extension-0.3.7 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.3.4 lib/devise_security_extension/hooks/password_expirable.rb
vizjerai-devise_security_extension-0.3.6 lib/devise_security_extension/hooks/password_expirable.rb
vizjerai-devise_security_extension-0.3.5 lib/devise_security_extension/hooks/password_expirable.rb
vizjerai-devise_security_extension-0.3.4 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.3.3 lib/devise_security_extension/hooks/password_expirable.rb
vizjerai-devise_security_extension-0.3.3 lib/devise_security_extension/hooks/password_expirable.rb
vizjerai-devise_security_extension-0.3.2 lib/devise_security_extension/hooks/password_expirable.rb