Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
4d19d5f1
Commit
4d19d5f1
authored
Sep 16, 2009
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SA-
CORE-2009
-008
parent
f5d1094b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
modules/openid/openid.module
modules/openid/openid.module
+1
-1
modules/openid/openid.pages.inc
modules/openid/openid.pages.inc
+5
-4
No files found.
modules/openid/openid.module
View file @
4d19d5f1
...
...
@@ -206,7 +206,7 @@ function openid_begin($claimed_id, $return_to = '', $form_values = array()) {
}
if
(
isset
(
$services
[
0
][
'types'
])
&&
is_array
(
$services
[
0
][
'types'
])
&&
in_array
(
OPENID_NS_2_0
.
'/server'
,
$services
[
0
][
'types'
]))
{
$identity
=
'http://specs.openid.net/auth/2.0/identifier_select'
;
$claimed_id
=
$identity
=
'http://specs.openid.net/auth/2.0/identifier_select'
;
}
$authn_request
=
openid_authentication_request
(
$claimed_id
,
$identity
,
$return_to
,
$assoc_handle
,
$services
[
0
][
'version'
]);
...
...
modules/openid/openid.pages.inc
View file @
4d19d5f1
...
...
@@ -83,10 +83,11 @@ function openid_user_add_validate($form, &$form_state) {
if
(
db_query
(
"SELECT authname FROM
{
authmap
}
WHERE authname = :authname"
,
(
array
(
':authname'
=>
$claimed_id
)))
->
fetchField
())
{
form_set_error
(
'openid_identifier'
,
t
(
'That OpenID is already in use on this site.'
));
}
else
{
$return_to
=
url
(
'user/'
.
arg
(
1
)
.
'/openid'
,
array
(
'absolute'
=>
TRUE
));
openid_begin
(
$form_state
[
'values'
][
'openid_identifier'
],
$return_to
);
}
}
function
openid_user_add_submit
(
$form
,
&
$form_state
)
{
$return_to
=
url
(
'user/'
.
arg
(
1
)
.
'/openid'
,
array
(
'absolute'
=>
TRUE
));
openid_begin
(
$form_state
[
'values'
][
'openid_identifier'
],
$return_to
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment