Commit 87b669b82797d2899207d085131b1196169ed670
1 parent
f0ee9f49
Exists in
staging
and in
3 other branches
All testing passing - BPs removed
Showing
4 changed files
with
0 additions
and
4 deletions
Show diff stats
lib/noosfero/api/helpers.rb
@@ -22,7 +22,6 @@ require 'grape' | @@ -22,7 +22,6 @@ require 'grape' | ||
22 | end | 22 | end |
23 | 23 | ||
24 | def current_tmp_user | 24 | def current_tmp_user |
25 | - binding.pry | ||
26 | private_token = (params[PRIVATE_TOKEN_PARAM] || headers['Private-Token']).to_s | 25 | private_token = (params[PRIVATE_TOKEN_PARAM] || headers['Private-Token']).to_s |
27 | ## Get the "captcha" session store | 26 | ## Get the "captcha" session store |
28 | @current_tmp_user = Noosfero::API::SessionStore.get("captcha##{private_token}") | 27 | @current_tmp_user = Noosfero::API::SessionStore.get("captcha##{private_token}") |
lib/noosfero/api/session.rb
@@ -59,7 +59,6 @@ module Noosfero | @@ -59,7 +59,6 @@ module Noosfero | ||
59 | #requires :password_confirmation, type: String, desc: _("Password confirmation") | 59 | #requires :password_confirmation, type: String, desc: _("Password confirmation") |
60 | end | 60 | end |
61 | post "/register" do | 61 | post "/register" do |
62 | - # binding.pry | ||
63 | attrs = attributes_for_keys [:email, :login, :password, :password_confirmation] + environment.signup_person_fields | 62 | attrs = attributes_for_keys [:email, :login, :password, :password_confirmation] + environment.signup_person_fields |
64 | remote_ip = (request.respond_to?(:remote_ip) && request.remote_ip) || (env && env['REMOTE_ADDR']) | 63 | remote_ip = (request.respond_to?(:remote_ip) && request.remote_ip) || (env && env['REMOTE_ADDR']) |
65 | # test_captcha will render_api_error! and exit in case of any problem | 64 | # test_captcha will render_api_error! and exit in case of any problem |
plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb
@@ -90,7 +90,6 @@ class SerproCaptchaVerificationTest < ActiveSupport::TestCase | @@ -90,7 +90,6 @@ class SerproCaptchaVerificationTest < ActiveSupport::TestCase | ||
90 | end | 90 | end |
91 | 91 | ||
92 | should 'perform a vote on an article identified by id' do | 92 | should 'perform a vote on an article identified by id' do |
93 | - binding.pry | ||
94 | pass_captcha @environment.serpro_captcha_verify_uri, @captcha_verification_body | 93 | pass_captcha @environment.serpro_captcha_verify_uri, @captcha_verification_body |
95 | params = {} | 94 | params = {} |
96 | params[:txtToken_captcha_serpro_gov_br]= @captcha_token | 95 | params[:txtToken_captcha_serpro_gov_br]= @captcha_token |
test/unit/api/session_test.rb
@@ -83,7 +83,6 @@ class SessionTest < ActiveSupport::TestCase | @@ -83,7 +83,6 @@ class SessionTest < ActiveSupport::TestCase | ||
83 | end | 83 | end |
84 | 84 | ||
85 | should 'not register a duplicated user' do | 85 | should 'not register a duplicated user' do |
86 | - # binding.pry | ||
87 | params = {:login => "newuserapi", :password => "newuserapi", :password_confirmation => "newuserapi", :email => "newuserapi@email.com" } | 86 | params = {:login => "newuserapi", :password => "newuserapi", :password_confirmation => "newuserapi", :email => "newuserapi@email.com" } |
88 | post "/api/v1/register?#{params.to_query}" | 87 | post "/api/v1/register?#{params.to_query}" |
89 | post "/api/v1/register?#{params.to_query}" | 88 | post "/api/v1/register?#{params.to_query}" |