Module: Merb::Authentication::Strategies

Defined in:
lib/heedley-merb-auth-with-account/strategies/password_form_with_account.rb,
lib/heedley-merb-auth-with-account/strategies/abstract_password.rb

Overview

Overwrite the :password_param, and :login_param to return the name of the field (on the form) that you’re using the login with. These can be strings or symbols

Required

Methods

<User>.authenticate(login_param, password_param)

module Merb::Authentication::Strategies

class FormWithAccount < Merb::Authentication::Strategy
  def run!
     if params[:login]
       User.authenticate(request.params[:login], request.params[:password])
     end
  end
end

end

Defined Under Namespace

Modules: Basic Classes: FormWithAccount