first commit
This commit is contained in:
commit
788cf3e917
47 changed files with 2007 additions and 0 deletions
15
webroot/auth.php
Normal file
15
webroot/auth.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
use MingTsay\Akanyan\App;
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
if (($_GET['source'] ?? '') !== 'discord' || empty($_GET['code'])) {
|
||||
http_response_code(403);
|
||||
exit;
|
||||
}
|
||||
|
||||
App::auth($_GET['code']);
|
||||
|
||||
header('location: /');
|
||||
http_response_code(302);
|
||||
Loading…
Add table
Add a link
Reference in a new issue