* [ADD] Added In-App notifications polling. It will show up a browser notification when there are pending notifications

* [MOD] Improved Javascript error handling
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-10-16 01:13:38 +02:00
parent 0e3c8beaf2
commit e322563a66
35 changed files with 622 additions and 386 deletions

View File

@@ -69,12 +69,16 @@ abstract class SimpleControllerBase
*/
protected function checks()
{
$this->checkLoggedInSession($this->session, $this->request, function ($redirect) {
$this->router->response()
->redirect($redirect)
->send(true);
});
$this->checkSecurityToken($this->session, $this->request);
$this->checkLoggedInSession(
$this->session,
$this->request,
function ($redirect) {
$this->router->response()
->redirect($redirect)
->send(true);
}
);
// $this->checkSecurityToken($this->session, $this->request);
}
/**