From 5784a7d2d7c4c5ec27765498660f9a71cbdb7f48 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 8 May 2017 21:10:17 +1200 Subject: [PATCH] API Removed deprecated Security::set_login_recording() --- docs/en/04_Changelogs/4.0.0.md | 2 ++ src/Security/Security.php | 23 ----------------------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/docs/en/04_Changelogs/4.0.0.md b/docs/en/04_Changelogs/4.0.0.md index 33e4373af..04d87df3d 100644 --- a/docs/en/04_Changelogs/4.0.0.md +++ b/docs/en/04_Changelogs/4.0.0.md @@ -1284,6 +1284,8 @@ After (`mysite/_config/config.yml`): - `getConfigDirs` - `getConfigs` * Removed `Session::set_config()` and `Session::get_config()`. Use the `Session.timeout` config setting instead +* Removed `Security::set_login_recording()` and `Security::get_login_recording()`. + Use the `Security.login_recording` config setting instead. #### General and Core Deprecated API diff --git a/src/Security/Security.php b/src/Security/Security.php index 6c912010c..8cc9ac41e 100644 --- a/src/Security/Security.php +++ b/src/Security/Security.php @@ -1137,29 +1137,6 @@ class Security extends Controller implements TemplateGlobalProvider return true; } - /** - * Enable or disable recording of login attempts - * through the {@link LoginRecord} object. - * - * @deprecated 4.0 Use the "Security.login_recording" config setting instead - * @param boolean $bool - */ - public static function set_login_recording($bool) - { - Deprecation::notice('4.0', 'Use the "Security.login_recording" config setting instead'); - self::$login_recording = (bool)$bool; - } - - /** - * @deprecated 4.0 Use the "Security.login_recording" config setting instead - * @return boolean - */ - public static function login_recording() - { - Deprecation::notice('4.0', 'Use the "Security.login_recording" config setting instead'); - return self::$login_recording; - } - /** * @config * @var string Set the default login dest