Class: Webhookdb::Service::Auth::PasswordStrategy

Inherits:
Warden::Strategies::Base
  • Object
show all
Defined in:
lib/webhookdb/service/auth.rb

Direct Known Subclasses

AdminPasswordStrategy

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/webhookdb/service/auth.rb', line 10

def valid?
  params["password"] && params["email"]
end