Sha256: 23979ef8b9594e27f0f614158753cc5114d5481e69730b348a70aa4d1b819b6b

Contents?: true

Size: 210 Bytes

Versions: 17

Compression:

Stored size: 210 Bytes

Contents

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

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
devise_password_expirable-4.0.0 lib/devise_password_expirable/hooks/password_expirable.rb
devise_password_expirable-3.0.0 lib/devise_password_expirable/hooks/password_expirable.rb
devise_password_expirable-2.0.0 lib/devise_password_expirable/hooks/password_expirable.rb
devise_security_extension-0.8.0 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.7.2 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.7.1 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.7.0 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.6.2 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.6.1 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.6.0 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.5.1 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.5.0 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.4.2 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.4.1 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.4.0 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.3.6 lib/devise_security_extension/hooks/password_expirable.rb
devise_security_extension-0.3.5 lib/devise_security_extension/hooks/password_expirable.rb