mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Removed deprecated Security::set_login_recording()
This commit is contained in:
parent
2a7c76e9e9
commit
5784a7d2d7
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user