Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Commit

Permalink
Rename the PHP example to persona.php (fixes #15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Marier committed Nov 10, 2012
1 parent f1cbe60 commit f12953c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions php/browserid.php → php/persona.php
Expand Up @@ -14,21 +14,21 @@
print_header();
echo "<p>Logged in as: " . $result->email . "</p>";
echo '<p><a href="javascript:navigator.id.logout()">Logout</a></p>';
echo "<p><a href=\"browserid.php\">Back to login page</p>";
echo "<p><a href=\"persona.php\">Back to login page</p>";
print_footer($result->email);
} else {
// Login-attempt not successful
print_header();
echo "<p>Error: " . $result->reason . "</p>";
// Note that the explanation is technical and not user friendly
echo "<p><a href=\"browserid.php\">Back to login page</p>";
echo "<p><a href=\"persona.php\">Back to login page</p>";
print_footer();
}
} elseif (!empty($_GET['logout'])) {
// Logout request submitted
print_header();
echo "<p>You have logged out.</p>";
echo "<p><a href=\"browserid.php\">Back to login page</p>";
echo "<p><a href=\"persona.php\">Back to login page</p>";
print_footer();
} else {
// The state of the page
Expand Down

0 comments on commit f12953c

Please sign in to comment.