diff options
author | michael pereira | 2012-02-27 02:32:46 +0100 |
---|---|---|
committer | michael pereira | 2012-02-27 02:32:46 +0100 |
commit | 104c3e8b71c34225766eef7d20720ab76834c8e4 (patch) | |
tree | 7d803ed8aa29f47d2dc6c3fb386af89be1ae4598 | |
parent | certificate auth (diff) | |
download | pbs2-104c3e8b71c34225766eef7d20720ab76834c8e4.tar.gz pbs2-104c3e8b71c34225766eef7d20720ab76834c8e4.tar.xz pbs2-104c3e8b71c34225766eef7d20720ab76834c8e4.zip |
certerror added
-rw-r--r-- | application/modules/fbgui/controllers/AuthController.php | 2 | ||||
-rw-r--r-- | application/modules/fbgui/controllers/IndexController.php | 5 | ||||
-rw-r--r-- | library/Pbs/Notifier.php | 7 |
3 files changed, 13 insertions, 1 deletions
diff --git a/application/modules/fbgui/controllers/AuthController.php b/application/modules/fbgui/controllers/AuthController.php index c9f750a..5841356 100644 --- a/application/modules/fbgui/controllers/AuthController.php +++ b/application/modules/fbgui/controllers/AuthController.php @@ -41,7 +41,7 @@ class Fbgui_AuthController extends Zend_Controller_Action { return; } } - $this->_redirect('/fbgui/'); + $this->_redirect('/fbgui/index/error/certresult/forbidden'); } else { diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index 5651796..61af3dc 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -28,6 +28,11 @@ class Fbgui_IndexController extends Zend_Controller_Action { $this->view->notification = Pbs_Notifier::notify('serial', $result); } + $result = $this->_request->getParam('certresult'); + if($result != "") { + + $this->view->notification = Pbs_Notifier::notify('certificate', $result); + } } public function indexAction() { diff --git a/library/Pbs/Notifier.php b/library/Pbs/Notifier.php index 46dfd48..5e685fd 100644 --- a/library/Pbs/Notifier.php +++ b/library/Pbs/Notifier.php @@ -46,6 +46,13 @@ class Pbs_Notifier { break; } break; + case "certificate": + switch($result) { + case "forbidden": + $result = "<div class='errorbox'>Your certificate has either expired or was revoked. Please contact a PBS Administrator</div>"; + break; + } + break; case "view": switch($result) { case "forbidden": |