Added logged in indicator
This commit is contained in:
parent
b9521ad7ed
commit
8cbccb410d
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"com.thorlaksson.phpcs.runOnChange" : "onSave",
|
"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
2
composer.lock
generated
@ -12,7 +12,7 @@
|
|||||||
"dist": {
|
"dist": {
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"url": "../APnutI",
|
"url": "../APnutI",
|
||||||
"reference": "171b4a0ec6bacc9e53eb3d0f3fdebef8f54533b5"
|
"reference": "99eee326abe217a901fbc6f8415e70f64bcb5959"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
|
@ -6,5 +6,6 @@ $is_authenticated = $api->isAuthenticated();
|
|||||||
if (!$is_authenticated) {
|
if (!$is_authenticated) {
|
||||||
echo '<a href="' . $api->getAuthURL() . '">Login with pnut</a>';
|
echo '<a href="' . $api->getAuthURL() . '">Login with pnut</a>';
|
||||||
} else {
|
} else {
|
||||||
echo 'Welcome';
|
$u = $api->getAuthorizedUser();
|
||||||
|
echo 'Welcome @'.$u->username;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user