mirror of
https://github.com/redmine/redmine.git
synced 2026-05-05 18:27:00 +02:00
Merged r12438 (#15735).
git-svn-id: http://svn.redmine.org/redmine/branches/2.4-stable@12444 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -131,6 +131,16 @@ class AccountControllerOpenidTest < ActionController::TestCase
|
||||
assert_select 'input[name=?][value=?]', 'user[identity_url]', 'http://openid.example.com/good_blank_user'
|
||||
end
|
||||
|
||||
def test_post_login_should_not_verify_token_when_using_open_id
|
||||
ActionController::Base.allow_forgery_protection = true
|
||||
AccountController.any_instance.stubs(:using_open_id?).returns(true)
|
||||
AccountController.any_instance.stubs(:authenticate_with_open_id).returns(true)
|
||||
post :login
|
||||
assert_response 200
|
||||
ensure
|
||||
ActionController::Base.allow_forgery_protection = false
|
||||
end
|
||||
|
||||
def test_register_after_login_failure_should_not_require_user_to_enter_a_password
|
||||
Setting.self_registration = '3'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user