Fixing Github sign-in
This commit is contained in:
parent
7b70fe3c69
commit
b74a7070a7
|
@ -175,8 +175,6 @@ class ProjectController extends b8\Controller
|
|||
$github = \b8\Registry::getInstance()->get('github_app');
|
||||
$code = $this->getParam('code', null);
|
||||
|
||||
$_SESSION['github_token'] = null;
|
||||
|
||||
if (!is_null($code)) {
|
||||
$http = new \b8\HttpClient();
|
||||
$url = 'https://github.com/login/oauth/access_token';
|
||||
|
@ -190,6 +188,10 @@ class ProjectController extends b8\Controller
|
|||
die;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($_SESSION['github_token'])) {
|
||||
$_SESSION['github_token'] = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue