mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE Removed BasicAuth::enable()/disable(), use protect_entire_site()
This commit is contained in:
parent
27fd3e5633
commit
4216a09177
@ -35,7 +35,6 @@ incomplete - please add to it** *Try to keep it in alphabetical order too! :)*
|
||||
| ---- | | ----------- |
|
||||
| Authenticator::register_authenticator($authenticator);| | Enable an authentication method (for more details see [security](/topics/security)). |
|
||||
| Authenticator::set_default_authenticator($authenticator); | | Modify tab-order on login-form.|
|
||||
| BasicAuth::disable() | | Disable basic authentication checking for dev sites (useful when testing credit card transaction post-backs etc) |
|
||||
| BBCodeParser::disable_autolink_urls(); | | Disables plain hyperlinks from being turned into links when bbcode is parsed. |
|
||||
| BlogEntry::allow_wysiwyg_editing(); | | Enable rich text editing for blog posts. |
|
||||
| ContentNegotiator::set_encoding(string $encoding) | | The encoding charset to use - UTF-8 by default |
|
||||
|
@ -114,22 +114,6 @@ class BasicAuth {
|
||||
if($message) self::$entire_site_protected_message = $message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use BasicAuth::protect_entire_site() instead.
|
||||
*/
|
||||
static function enable() {
|
||||
Deprecation::notice('2.4', 'Use BasicAuth::protect_entire_site() instead.');
|
||||
return self::protect_entire_site();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use BasicAuth::protect_entire_site(false) instead.
|
||||
*/
|
||||
static function disable() {
|
||||
Deprecation::notice('2.4', 'Use BasicAuth::protect_entire_site(false) instead.');
|
||||
return self::protect_entire_site(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Call {@link BasicAuth::requireLogin()} if {@link BasicAuth::protect_entire_site()} has been called.
|
||||
* This is a helper function used by {@link Controller::init()}.
|
||||
|
Loading…
x
Reference in New Issue
Block a user