Navigation Menu

Skip to content

Commit

Permalink
Fixing rubbish login message when trying to access the CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Aug 4, 2015
1 parent d0d34bd commit 009458e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions admin/code/LeftAndMain.php
Expand Up @@ -247,14 +247,20 @@ public function init() {

// if no alternate menu items have matched, return a permission error
$messageSet = array(
'default' => _t('LeftAndMain.PERMDEFAULT',
"Please choose an authentication method and enter your credentials to access the CMS."),
'alreadyLoggedIn' => _t('LeftAndMain.PERMALREADY',
'default' => _t(
'LeftAndMain.PERMDEFAULT',
"You must be logged in to access the administration area; please enter your credentials below."
),
'alreadyLoggedIn' => _t(
'LeftAndMain.PERMALREADY',
"I'm sorry, but you can't access that part of the CMS. If you want to log in as someone else, do"
. " so below"),
'logInAgain' => _t('LeftAndMain.PERMAGAIN',
. " so below."
),
'logInAgain' => _t(
'LeftAndMain.PERMAGAIN',
"You have been logged out of the CMS. If you would like to log in again, enter a username and"
. " password below."),
. " password below."
),
);

return Security::permissionFailure($this, $messageSet);
Expand Down

0 comments on commit 009458e

Please sign in to comment.