Class: Webhookdb::Service::Auth::PasswordStrategy
- Inherits:
-
Warden::Strategies::Base
- Object
- Warden::Strategies::Base
- Webhookdb::Service::Auth::PasswordStrategy
- Defined in:
- lib/webhookdb/service/auth.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#authenticate! ⇒ Object
14 15 16 17 |
# File 'lib/webhookdb/service/auth.rb', line 14 def authenticate! customer = self.lookup_customer success!(customer) if customer end |
#valid? ⇒ Boolean
10 11 12 |
# File 'lib/webhookdb/service/auth.rb', line 10 def valid? params["password"] && params["email"] end |