Commit f2019b9b1eb0d3c67b6fc4b3ba871deffb8f9813
1 parent
41d5377e
Exists in
master
and in
29 other branches
ActionItem670: fixed
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/branches/0.11.x@2488 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
app/controllers/public/account_controller.rb
@@ -2,7 +2,7 @@ class AccountController < ApplicationController | @@ -2,7 +2,7 @@ class AccountController < ApplicationController | ||
2 | 2 | ||
3 | inverse_captcha :field => 'e_mail' | 3 | inverse_captcha :field => 'e_mail' |
4 | 4 | ||
5 | - require_ssl :except => [ :login_popup ] | 5 | + require_ssl :except => [ :login_popup, :logout_popup ] |
6 | 6 | ||
7 | # say something nice, you goof! something sweet. | 7 | # say something nice, you goof! something sweet. |
8 | def index | 8 | def index |
test/functional/account_controller_test.rb
@@ -529,6 +529,12 @@ class AccountControllerTest < Test::Unit::TestCase | @@ -529,6 +529,12 @@ class AccountControllerTest < Test::Unit::TestCase | ||
529 | assert_response :success | 529 | assert_response :success |
530 | end | 530 | end |
531 | 531 | ||
532 | + should 'allow logout_popup without SSL' do | ||
533 | + @request.expects(:ssl?).returns(false).at_least_once | ||
534 | + get :logout_popup | ||
535 | + assert_response :success | ||
536 | + end | ||
537 | + | ||
532 | should 'point to SSL URL in login popup' do | 538 | should 'point to SSL URL in login popup' do |
533 | get :login_popup | 539 | get :login_popup |
534 | assert_tag :tag => 'form', :attributes => { :action => /^https:\/\// } | 540 | assert_tag :tag => 'form', :attributes => { :action => /^https:\/\// } |