diff options
| author | 2014-02-15 12:25:06 +0100 | |
|---|---|---|
| committer | 2014-02-15 12:25:06 +0100 | |
| commit | cddec2d76f2c5d25d3008d5e2a60fddad6028a5d (patch) | |
| tree | bb5003941fcf4dcecf7d0c8c11f9b0a1eb84dece /app/Controllers/indexController.php | |
| parent | a34941f41875bcc9d260c8dfcf9d44a00f835bc9 (diff) | |
Improve login page
- if user cannot log in, a 403 error is showed (and it is done in controller)
- 403 error message has been changed to match with the error
- add blank spaces on persona login page
Diffstat (limited to 'app/Controllers/indexController.php')
| -rwxr-xr-x | app/Controllers/indexController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index a680c914a..38f4c0e7c 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -351,6 +351,11 @@ class FreshRSS_index_Controller extends Minz_ActionController { } $this->view->_useLayout(false); Minz_Request::forward(array('c' => 'index', 'a' => 'index'), true); + } elseif (!Minz_Configuration::canLogIn()) { + Minz_Error::error ( + 403, + array ('error' => array (Minz_Translate::t ('access_denied'))) + ); } invalidateHttpCache(); } |
