diff options
author | tailor <chowells@janrain.com> | 2008-05-27 23:52:04 +0000 |
---|---|---|
committer | tailor <chowells@janrain.com> | 2008-05-27 23:52:04 +0000 |
commit | b3cf43640374a48d0db9233b09145529eb579cc1 (patch) | |
tree | 855c305535cf16d6c4a48db6f5dba2904a1ea254 /examples/consumer/try_auth.php | |
parent | d2a5a0dab3c426f0d4b3feff3607bea9c510498b (diff) | |
download | php-openid-b3cf43640374a48d0db9233b09145529eb579cc1.zip php-openid-b3cf43640374a48d0db9233b09145529eb579cc1.tar.gz php-openid-b3cf43640374a48d0db9233b09145529eb579cc1.tar.bz2 |
[project @ use the htmlMarkup method to get auto-submitting code, instead of doing it in the example consumer]
Diffstat (limited to 'examples/consumer/try_auth.php')
-rw-r--r-- | examples/consumer/try_auth.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/examples/consumer/try_auth.php b/examples/consumer/try_auth.php index 4d2714c..7efec76 100644 --- a/examples/consumer/try_auth.php +++ b/examples/consumer/try_auth.php @@ -65,7 +65,7 @@ function run() { } else { // Generate form markup and render it. $form_id = 'openid_message'; - $form_html = $auth_request->formMarkup(getTrustRoot(), getReturnTo(), + $form_html = $auth_request->htmlMarkup(getTrustRoot(), getReturnTo(), false, array('id' => $form_id)); // Display an error if the form markup couldn't be generated; @@ -73,15 +73,7 @@ function run() { if (Auth_OpenID::isFailure($form_html)) { displayError("Could not redirect to server: " . $form_html->message); } else { - $page_contents = array( - "<html><head><title>", - "OpenID transaction in progress", - "</title></head>", - "<body onload='document.getElementById(\"".$form_id."\").submit()'>", - $form_html, - "</body></html>"); - - print implode("\n", $page_contents); + print $form_html; } } } |