mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Security text whitespace change to be consistent with eachother when the site is accessed with BasicAuth enabled
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@90224 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c45e2bf51a
commit
3d6c6a58d0
@ -77,7 +77,7 @@ class Controller extends RequestHandler {
|
|||||||
function init() {
|
function init() {
|
||||||
// Test and development sites should be secured, via basic-auth
|
// Test and development sites should be secured, via basic-auth
|
||||||
if(Director::isTest() && $this->basicAuthEnabled && Security::database_is_ready()) {
|
if(Director::isTest() && $this->basicAuthEnabled && Security::database_is_ready()) {
|
||||||
BasicAuth::requireLogin("SilverStripe test website. Use your CMS login", "ADMIN");
|
BasicAuth::requireLogin("SilverStripe test website. Use your CMS login", "ADMIN");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Directly access the session variable just in case the Group or Member tables don't yet exist
|
// Directly access the session variable just in case the Group or Member tables don't yet exist
|
||||||
|
@ -793,7 +793,7 @@ class Director {
|
|||||||
// Use ?isDev=1 to get development access on the live server
|
// Use ?isDev=1 to get development access on the live server
|
||||||
if(isset($_GET['isDev'])) {
|
if(isset($_GET['isDev'])) {
|
||||||
if(Security::database_is_ready()) {
|
if(Security::database_is_ready()) {
|
||||||
BasicAuth::requireLogin("SilverStripe developer access. Use your CMS login", "ADMIN");
|
BasicAuth::requireLogin("SilverStripe developer access. Use your CMS login", "ADMIN");
|
||||||
$_SESSION['isDev'] = $_GET['isDev'];
|
$_SESSION['isDev'] = $_GET['isDev'];
|
||||||
} else {
|
} else {
|
||||||
if($firstTimeCheckingGetVar && DB::connection_attempted()) {
|
if($firstTimeCheckingGetVar && DB::connection_attempted()) {
|
||||||
@ -826,7 +826,7 @@ class Director {
|
|||||||
// Use ?isTest=1 to get test access on the live server, or explicitly set your environment
|
// Use ?isTest=1 to get test access on the live server, or explicitly set your environment
|
||||||
if(isset($_GET['isTest'])) {
|
if(isset($_GET['isTest'])) {
|
||||||
if(Security::database_is_ready()) {
|
if(Security::database_is_ready()) {
|
||||||
BasicAuth::requireLogin("SilverStripe developer access. Use your CMS login", "ADMIN");
|
BasicAuth::requireLogin("SilverStripe developer access. Use your CMS login", "ADMIN");
|
||||||
$_SESSION['isTest'] = $_GET['isTest'];
|
$_SESSION['isTest'] = $_GET['isTest'];
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user