mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixing rubbish login message when trying to access the CMS
This commit is contained in:
parent
d0d34bde4a
commit
009458e342
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user