Class: OmniAuth::Strategies::Internal

Inherits:
Object
  • Object
show all
Includes:
MultiPassword::Base, OmniAuth::Strategy
Defined in:
lib/omniauth/strategies/internal.rb

Instance Method Summary collapse

Instance Method Details

#authenticate(username, password) ⇒ Object



18
19
20
# File 'lib/omniauth/strategies/internal.rb', line 18

def authenticate(username, password)
  model.authenticate(username, password)
end

#modelObject



14
15
16
# File 'lib/omniauth/strategies/internal.rb', line 14

def model
  options[:model] || ::User
end