summaryrefslogtreecommitdiffstats
path: root/examples/consumer/try_auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/consumer/try_auth.php')
-rw-r--r--examples/consumer/try_auth.php12
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;
}
}
}