Skip to content

Commit

Permalink
Fixes bug in merb-auth caught by step-by-step tester
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Dec 29, 2008
1 parent bd45664 commit 30d90d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -16,12 +16,12 @@ module Basic
class Form < Base

def run!
if login = request.params[login_param] && password = request.params[password_param]
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!
error.add(login_param, strategy_error_message)
errors.add(login_param, strategy_error_message)
end
user
end
Expand Down
2 changes: 1 addition & 1 deletion merb-core/lib/merb-core/version.rb
@@ -1,4 +1,4 @@
module Merb
VERSION = '1.0.6.1' unless defined?(Merb::VERSION)
VERSION = '1.0.7' unless defined?(Merb::VERSION)
DM_VERSION = '0.9.8' unless defined?(Merb::DM_VERSION)
end

0 comments on commit 30d90d3

Please sign in to comment.