Commit f2019b9b1eb0d3c67b6fc4b3ba871deffb8f9813

Authored by MoisesMachado
1 parent 41d5377e

ActionItem670: fixed

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/branches/0.11.x@2488 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/public/account_controller.rb
... ... @@ -2,7 +2,7 @@ class AccountController < ApplicationController
2 2  
3 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 7 # say something nice, you goof! something sweet.
8 8 def index
... ...
test/functional/account_controller_test.rb
... ... @@ -529,6 +529,12 @@ class AccountControllerTest < Test::Unit::TestCase
529 529 assert_response :success
530 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 538 should 'point to SSL URL in login popup' do
533 539 get :login_popup
534 540 assert_tag :tag => 'form', :attributes => { :action => /^https:\/\// }
... ...