class OmniAuth::Strategies::Password

Constants

PROVIDER_NAME

Public Instance Methods

callback_phase() click to toggle source

def request_phase

form = OmniAuth::Form.new(:title => "User Info", :url => callback_path)
[ options.username_field, options.password_field ].each do |field|
  form.text_field field.to_s.capitalize.gsub("_", " "), field.to_s
end
form.button "Sign In"
form.to_response

end

Calls superclass method
# File lib/aerogel/users/omniauth-password.rb, line 34
def callback_phase
  request.params['uid'] = uid
  request.env['omniauth.origin'] ||= request.params['origin']
  request.env['omniauth.params'] = request.params
  unless instance_exec( request.params, &options.on_authenticate )
    return fail!(:invalid_credentials)
  end
  super
end