Files

Merb::Authentication::Strategies::Basic::Form

Public Instance Methods

run!() click to toggle source
# File lib/merb-auth-more/strategies/basic/password_form.rb, line 19
def run!
  if (login = request.params[login_param]) && (password = request.params[password_param])
    user = user_class.authenticate(login, password)
    if !user
      errors = request.session.authentication.errors
      errors.clear!
      errors.add(login_param, strategy_error_message)
    end
    user
  end
end
strategy_error_message() click to toggle source
# File lib/merb-auth-more/strategies/basic/password_form.rb, line 31
def strategy_error_message
  "#{login_param.to_s.capitalize} or #{password_param.to_s.capitalize} were incorrect"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.