dragonpolls/auth_callback.php
2021-04-17 16:04:34 +02:00

16 lines
336 B
PHP

<?php
require_once __DIR__ .'/bootstrap.php';
if (isset($_GET['code'])) {
$success = $api->authenticate($_GET['code']);
if ($success) {
redirect('index.php');
} else {
quit(get_page_header().'Echo error authenticating');
}
} else {
quit(get_page_header().'Echo error authenticating: '. $_GET['error_message']);
}