Skip to content

Commit

Permalink
API CHANGE Removed BasicAuth::enable()/disable(), use protect_entire_…
Browse files Browse the repository at this point in the history
…site()
  • Loading branch information
chillu committed Mar 9, 2012
1 parent 27fd3e5 commit 4216a09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion docs/en/topics/configuration.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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::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.| | 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. | | 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. | | 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 | | ContentNegotiator::set_encoding(string $encoding) | | The encoding charset to use - UTF-8 by default |
Expand Down
16 changes: 0 additions & 16 deletions security/BasicAuth.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -114,22 +114,6 @@ static function protect_entire_site($protect = true, $code = 'ADMIN', $message =
if($message) self::$entire_site_protected_message = $message; 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. * Call {@link BasicAuth::requireLogin()} if {@link BasicAuth::protect_entire_site()} has been called.
* This is a helper function used by {@link Controller::init()}. * This is a helper function used by {@link Controller::init()}.
Expand Down

0 comments on commit 4216a09

Please sign in to comment.