mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
1b0cac2e0a
commit
6d88f5f77a
@ -43,6 +43,8 @@ class BasicAuth extends Object {
|
|||||||
|
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $member;
|
||||||
}
|
}
|
||||||
|
|
||||||
static protected $disabled;
|
static protected $disabled;
|
||||||
|
@ -118,6 +118,11 @@ class Security extends Controller {
|
|||||||
return $customisedController->renderWith("Page");
|
return $customisedController->renderWith("Page");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function basicauthlogin() {
|
||||||
|
$member = BasicAuth::requireLogin("SilverStripe login", 'ADMIN');
|
||||||
|
$member->LogIn();
|
||||||
|
}
|
||||||
|
|
||||||
function lostpassword() {
|
function lostpassword() {
|
||||||
Requirements::javascript("jsparty/prototype.js");
|
Requirements::javascript("jsparty/prototype.js");
|
||||||
|
Loading…
Reference in New Issue
Block a user