Added logged in indicator

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

View File

@ -1,4 +1,4 @@
{
"com.thorlaksson.phpcs.runOnChange" : "onSave",
"com.thorlaksson.phpcs.standard" : "\/Volumes\/Alyx\/Users\/max\/Dev\/Pnut\/Dragonpolls\/phpcs.xml"
"com.thorlaksson.phpcs.standard" : "phpcs.xml"
}

2
composer.lock generated
View File

@ -12,7 +12,7 @@
"dist": {
"type": "path",
"url": "../APnutI",
"reference": "171b4a0ec6bacc9e53eb3d0f3fdebef8f54533b5"
"reference": "99eee326abe217a901fbc6f8415e70f64bcb5959"
},
"require": {
"ext-curl": "*",

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;
}