Basic polls display + UI work

This commit is contained in:
2021-03-27 20:37:17 +01:00
parent 64b2e9e685
commit ac27c87c59
9 changed files with 199 additions and 32 deletions

View File

@ -2,10 +2,4 @@
require_once __DIR__ .'/bootstrap.php';
$is_authenticated = $api->isAuthenticated();
if (!$is_authenticated) {
echo '<a href="' . $api->getAuthURL() . '">Login with pnut</a>';
} else {
$u = $api->getAuthorizedUser();
echo 'Welcome @'.$u->username;
}
echo get_page_header();