Allow logging in via BasicAuth, so the publish site script can login before doing a db/build (merged from 2.1.0 branch, r41535)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42909 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-10-02 04:32:11 +00:00
parent 508830ec38
commit e46e5e73c9
2 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,8 @@ class BasicAuth extends Object {
die();
}
return $member;
}
static protected $disabled;

View File

@ -266,6 +266,11 @@ class Security extends Controller {
return $customisedController->renderWith("Page");
}
}
function basicauthlogin() {
$member = BasicAuth::requireLogin("SilverStripe login", 'ADMIN');
$member->LogIn();
}
/**