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
19:         def run!
20:           if (login = request.params[login_param]) && (password = request.params[password_param])
21:             user = user_class.authenticate(login, password)
22:             if !user
23:               errors = request.session.authentication.errors
24:               errors.clear!
25:               errors.add(login_param, strategy_error_message)
26:             end
27:             user
28:           end
29:         end
strategy_error_message() click to toggle source
    # File lib/merb-auth-more/strategies/basic/password_form.rb, line 31
31:         def strategy_error_message
32:           "#{login_param.to_s.capitalize} or #{password_param.to_s.capitalize} were incorrect"
33:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.