API Removed deprecated Security::set_login_recording()

This commit is contained in:
Ingo Schommer 2017-05-08 21:10:17 +12:00 committed by Damian Mooyman
parent 2a7c76e9e9
commit 5784a7d2d7
2 changed files with 2 additions and 23 deletions

View File

@ -1284,6 +1284,8 @@ After (`mysite/_config/config.yml`):
- `getConfigDirs` - `getConfigDirs`
- `getConfigs` - `getConfigs`
* Removed `Session::set_config()` and `Session::get_config()`. Use the `Session.timeout` config setting instead * 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.
#### <a name="overview-general-deprecated"></a>General and Core Deprecated API #### <a name="overview-general-deprecated"></a>General and Core Deprecated API

View File

@ -1137,29 +1137,6 @@ class Security extends Controller implements TemplateGlobalProvider
return true; 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 * @config
* @var string Set the default login dest * @var string Set the default login dest