diff options
| author | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-09-08 15:43:51 +0000 |
|---|---|---|
| committer | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-09-08 15:43:51 +0000 |
| commit | 070e552257daeb15c24dce902b6d9d1a17d7b15d (patch) | |
| tree | be1686d42f4db2c70b682c6b1390b8e04e979485 /php/Attic/examples/sample-idp/singleSignOn.php | |
| parent | a0e6291fb2482f5c926ab2599c2d85a80f9f59ab (diff) | |
added edit sp metadata to the setup system
Diffstat (limited to 'php/Attic/examples/sample-idp/singleSignOn.php')
| -rw-r--r-- | php/Attic/examples/sample-idp/singleSignOn.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/php/Attic/examples/sample-idp/singleSignOn.php b/php/Attic/examples/sample-idp/singleSignOn.php index 27ae27b6..93d040f7 100644 --- a/php/Attic/examples/sample-idp/singleSignOn.php +++ b/php/Attic/examples/sample-idp/singleSignOn.php @@ -88,16 +88,12 @@ } else { - // Save name identifier - if (!$res->numRows()) - { - $query = "INSERT INTO nameidentifiers (name_identifier, user_id) "; - $query .= "VALUES ('" . $login->nameIdentifier . "','$user_id')"; - $res =& $db->query($query); - if (DB::isError($res)) - die($res->getMessage()); - $name_identifier = $login->nameIdentifier; - } + $query = "INSERT INTO nameidentifiers (name_identifier, user_id) "; + $query .= "VALUES ('" . $login->nameIdentifier . "','$user_id')"; + $res =& $db->query($query); + if (DB::isError($res)) + die($res->getMessage()); + $name_identifier = $login->nameIdentifier; } if ($login->isIdentityDirty) |
