Class: Devise::Strategies::StormpathAuthenticatable
- Inherits:
-
Authenticatable
- Object
- Authenticatable
- Devise::Strategies::StormpathAuthenticatable
- Defined in:
- lib/devise/strategies/stormpath_authenticatable.rb
Instance Method Summary collapse
Instance Method Details
#authenticate! ⇒ Object
6 7 8 9 10 |
# File 'lib/devise/strategies/stormpath_authenticatable.rb', line 6 def authenticate! resource = valid_password? && mapping.to.authenticate_with_stormpath(params[scope]) return success!(resource) if resource && validate(resource) fail(:invalid) end |