Added logged in indicator

This commit is contained in:
2021-03-27 10:45:25 +00:00
parent b9521ad7ed
commit 8cbccb410d
3 changed files with 4 additions and 3 deletions

View File

@ -6,5 +6,6 @@ $is_authenticated = $api->isAuthenticated();
if (!$is_authenticated) {
echo '<a href="' . $api->getAuthURL() . '">Login with pnut</a>';
} else {
echo 'Welcome';
$u = $api->getAuthorizedUser();
echo 'Welcome @'.$u->username;
}