mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-28 20:29:15 +02:00
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:
parent
508830ec38
commit
e46e5e73c9
@ -43,6 +43,8 @@ class BasicAuth extends Object {
|
|||||||
|
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $member;
|
||||||
}
|
}
|
||||||
|
|
||||||
static protected $disabled;
|
static protected $disabled;
|
||||||
|
@ -266,6 +266,11 @@ class Security extends Controller {
|
|||||||
return $customisedController->renderWith("Page");
|
return $customisedController->renderWith("Page");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function basicauthlogin() {
|
||||||
|
$member = BasicAuth::requireLogin("SilverStripe login", 'ADMIN');
|
||||||
|
$member->LogIn();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user