src/Controller/DevelopersController.php 1 location
|
@@ 77-85 (lines=9) @@
|
| 74 |
|
$this->Flash->default('You have been logged in successfully', |
| 75 |
|
array('params' => array('class' => $flash_class))); |
| 76 |
|
} |
| 77 |
|
} else { |
| 78 |
|
$flash_class = 'alert alert-error'; |
| 79 |
|
$this->Flash->default('We were not able to authenticate you.' |
| 80 |
|
. ' Please try again later', |
| 81 |
|
array('params' => array('class' => $flash_class))); |
| 82 |
|
|
| 83 |
|
$this->redirect('/'); |
| 84 |
|
return; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
$last_page = $this->request->session()->read('last_page'); |
| 88 |
|
if (empty($last_page)) { |
src/Controller/GithubController.php 1 location
|
@@ 437-446 (lines=10) @@
|
| 434 |
|
*/ |
| 435 |
|
public function sync_issue_status() |
| 436 |
|
{ |
| 437 |
|
if (!defined('CRON_DISPATCHER')) { |
| 438 |
|
$flash_class = 'alert alert-error'; |
| 439 |
|
$this->Flash->default( |
| 440 |
|
'Unauthorised action! This action is not available on Web interface', |
| 441 |
|
array('params' => array('class' => $flash_class)) |
| 442 |
|
); |
| 443 |
|
|
| 444 |
|
$this->redirect('/'); |
| 445 |
|
return; |
| 446 |
|
} |
| 447 |
|
|
| 448 |
|
$this->autoRender = false; |
| 449 |
|
$reportsTable = TableRegistry::get('Reports'); |