Class: Devise::Strategies::PamAuthenticatable
- Inherits:
-
Base
- Object
- Base
- Devise::Strategies::PamAuthenticatable
- Defined in:
- lib/devise_pam_authenticatable/strategy.rb
Instance Method Summary collapse
Instance Method Details
#authenticate! ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/devise_pam_authenticatable/strategy.rb', line 11 def authenticate! if resource = mapping.to.authenticate_with_pam(params[scope]) success!(resource) else fail(:invalid) end end |
#valid? ⇒ Boolean
7 8 9 |
# File 'lib/devise_pam_authenticatable/strategy.rb', line 7 def valid? valid_controller? && valid_params? && mapping.to.respond_to?(:authenticate_with_pam) end |