Fixing rubbish login message when trying to access the CMS

This commit is contained in:
Daniel Hensby 2015-08-04 12:23:22 +01:00
parent d0d34bde4a
commit 009458e342

View File

@ -247,14 +247,20 @@ class LeftAndMain extends Controller implements PermissionProvider {
// if no alternate menu items have matched, return a permission error // if no alternate menu items have matched, return a permission error
$messageSet = array( $messageSet = array(
'default' => _t('LeftAndMain.PERMDEFAULT', 'default' => _t(
"Please choose an authentication method and enter your credentials to access the CMS."), 'LeftAndMain.PERMDEFAULT',
'alreadyLoggedIn' => _t('LeftAndMain.PERMALREADY', "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" "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"), . " so below."
'logInAgain' => _t('LeftAndMain.PERMAGAIN', ),
'logInAgain' => _t(
'LeftAndMain.PERMAGAIN',
"You have been logged out of the CMS. If you would like to log in again, enter a username and" "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); return Security::permissionFailure($this, $messageSet);