Fixing Github sign-in
This commit is contained in:
parent
ff02a52a6a
commit
7b70fe3c69
|
@ -112,6 +112,7 @@ class ProjectController extends b8\Controller
|
|||
}
|
||||
|
||||
$method = Registry::getInstance()->get('requestMethod');
|
||||
$this->handleGithubResponse();
|
||||
|
||||
if ($method == 'POST') {
|
||||
$values = $this->getParams();
|
||||
|
@ -144,8 +145,6 @@ class ProjectController extends b8\Controller
|
|||
$form = $this->projectForm($values);
|
||||
|
||||
if ($method != 'POST' || ($method == 'POST' && !$form->validate())) {
|
||||
$this->handleGithubResponse();
|
||||
|
||||
$view = new b8\View('ProjectForm');
|
||||
$view->type = 'add';
|
||||
$view->project = null;
|
||||
|
|
Loading…
Reference in a new issue