From d5687e4746010d9f93a9654aee51a0523eb57e74 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Wed, 8 Jul 2015 19:01:46 -0300 Subject: [PATCH] Fix merge mistake with === and == --- lib/noosfero/api/session.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/noosfero/api/session.rb b/lib/noosfero/api/session.rb index 8753c52..1698f67 100644 --- a/lib/noosfero/api/session.rb +++ b/lib/noosfero/api/session.rb @@ -41,7 +41,7 @@ module Noosfero attrs = attributes_for_keys [:email, :login, :password, :password_confirmation] + environment.signup_person_fields remote_ip = (request.respond_to?(:remote_ip) && request.remote_ip) || (env && env['REMOTE_ADDR']) - unless test_captcha(remote_ip, params, environment) === true + if not test_captcha(remote_ip, params, environment) == true render_api_error!(_('Please solve the test in order to register.'), 401) return end -- libgit2 0.21.2