11 lines
219 B
PHP
11 lines
219 B
PHP
|
<?php
|
||
|
|
||
|
require_once __DIR__ .'/bootstrap.php';
|
||
|
|
||
|
$is_authenticated = $api->isAuthenticated();
|
||
|
if (!$is_authenticated) {
|
||
|
echo '<a href="' . $api->getAuthURL() . '">Login with pnut</a>';
|
||
|
} else {
|
||
|
echo 'Welcome';
|
||
|
}
|