Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3253715
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3253715
Commits
4d19d5f1
Commit
4d19d5f1
authored
15 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
SA-
CORE-2009
-008
parent
f5d1094b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/openid/openid.module
+1
-1
1 addition, 1 deletion
modules/openid/openid.module
modules/openid/openid.pages.inc
+5
-4
5 additions, 4 deletions
modules/openid/openid.pages.inc
with
6 additions
and
5 deletions
modules/openid/openid.module
+
1
−
1
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'
]);
...
...
This diff is collapsed.
Click to expand it.
modules/openid/openid.pages.inc
+
5
−
4
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
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment