Allow logging in via BasicAuth, so the publish site script can login before doing a db/build

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.1.0@41533 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-09-10 05:33:38 +00:00 committed by Sam Minnee
parent 1b0cac2e0a
commit 6d88f5f77a
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

@ -119,6 +119,11 @@ class Security extends Controller {
}
}
function basicauthlogin() {
$member = BasicAuth::requireLogin("SilverStripe login", 'ADMIN');
$member->LogIn();
}
function lostpassword() {
Requirements::javascript("jsparty/prototype.js");
Requirements::javascript("jsparty/behaviour.js");