summaryrefslogtreecommitdiffstats
path: root/examples/consumer/finish_auth.php
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-07-24 21:02:18 +0000
committertailor <cygnus@janrain.com>2006-07-24 21:02:18 +0000
commitae639607655af0acc38810cbb0ce2efc622bafc9 (patch)
treecff27daca9fed6d0e76515f260c9e60e9990212b /examples/consumer/finish_auth.php
parente3adb8bc24019d456ae6582b66e43343f0ef7dd6 (diff)
downloadphp-openid-ae639607655af0acc38810cbb0ce2efc622bafc9.zip
php-openid-ae639607655af0acc38810cbb0ce2efc622bafc9.tar.gz
php-openid-ae639607655af0acc38810cbb0ce2efc622bafc9.tar.bz2
[project @ Updated example consumer to request sreg.email]
Diffstat (limited to 'examples/consumer/finish_auth.php')
-rw-r--r--examples/consumer/finish_auth.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/consumer/finish_auth.php b/examples/consumer/finish_auth.php
index 5d21456..ea99696 100644
--- a/examples/consumer/finish_auth.php
+++ b/examples/consumer/finish_auth.php
@@ -18,6 +18,11 @@ if ($response->status == Auth_OpenID_CANCEL) {
$success = sprintf('You have successfully verified ' .
'<a href="%s">%s</a> as your identity.',
$esc_identity, $esc_identity);
+ $sreg = $response->extensionResponse('sreg');
+
+ if (@$sreg['email']) {
+ $success .= " You also returned '".$sreg['email']."' as your email.";
+ }
}
include 'index.php';