From 9db02aba50f447ee0f29e03d359c25b008a839ff Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 16 Nov 2009 05:08:47 +0000 Subject: #216101 by c960657, Arancaytar, aufumy, et al: Fix registration workflow for OpenID providers that do not supply usernames/e-mail addresses. --- modules/openid/tests/openid_test.module | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/openid/tests/openid_test.module') diff --git a/modules/openid/tests/openid_test.module b/modules/openid/tests/openid_test.module index d8d914c22..365ddf9b3 100644 --- a/modules/openid/tests/openid_test.module +++ b/modules/openid/tests/openid_test.module @@ -212,7 +212,7 @@ function _openid_test_endpoint_authenticate() { // Generate response containing the user's identity. The openid.sreg.xxx // entries contain profile data stored by the OpenID Provider (see OpenID // Simple Registration Extension 1.0). - $response = array( + $response = variable_get('openid_test_response', array()) + array( 'openid.ns' => OPENID_NS_2_0, 'openid.mode' => 'id_res', 'openid.op_endpoint' => $base_url . url('openid/provider'), @@ -222,8 +222,6 @@ function _openid_test_endpoint_authenticate() { 'openid.return_to' => $_REQUEST['openid_return_to'], 'openid.response_nonce' => $nonce, 'openid.assoc_handle' => 'openid-test', - 'openid.sreg.email' => 'johndoe@example.com', - 'openid.sreg.nickname' => 'johndoe', 'openid.signed' => 'op_endpoint,claimed_id,identity,return_to,response_nonce,assoc_handle', ); -- cgit v1.2.3