summaryrefslogtreecommitdiffstats
path: root/test/mocks
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 06:22:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 06:22:35 +0000
commit76a4b81cf3a9a6c8b4a8a1fa6dca65c841508454 (patch)
tree62edc7b1ab63a870af235d70fbd0ad236481ad26 /test/mocks
parent6086aa1be4b2010383c702982847434e30960d1e (diff)
downloadredmine-76a4b81cf3a9a6c8b4a8a1fa6dca65c841508454.tar.gz
redmine-76a4b81cf3a9a6c8b4a8a1fa6dca65c841508454.zip
Fixed: Openid registration form should not require user to enter password (#11331).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9929 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/mocks')
-rw-r--r--test/mocks/open_id_authentication_mock.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mocks/open_id_authentication_mock.rb b/test/mocks/open_id_authentication_mock.rb
index 10d195e07..a7376e4ba 100644
--- a/test/mocks/open_id_authentication_mock.rb
+++ b/test/mocks/open_id_authentication_mock.rb
@@ -16,9 +16,10 @@ module OpenIdAuthentication
def authenticate_with_open_id(identity_url = params[:openid_url], options = {}) #:doc:
if User.find_by_identity_url(identity_url) || identity_url.include?('good')
+ extension_response_fields = {}
+
# Don't process registration fields unless it is requested.
unless identity_url.include?('blank') || (options[:required].nil? && options[:optional].nil?)
- extension_response_fields = {}
options[:required].each do |field|
extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s]