mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE Removed deprecated Security::encrypt_passwords() - please use PasswordEncryptor_None instead.
This commit is contained in:
parent
4a52e29620
commit
6e58026c27
@ -44,14 +44,6 @@ class Security extends Controller {
|
||||
*/
|
||||
protected static $strictPathChecking = false;
|
||||
|
||||
/**
|
||||
* Should passwords be stored encrypted?
|
||||
* @deprecated 2.4 Please use 'none' as the default $encryptionAlgorithm instead
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected static $encryptPasswords = true;
|
||||
|
||||
/**
|
||||
* The password encryption algorithm to use by default.
|
||||
* This is an arbitrary code registered through {@link PasswordEncryptor}.
|
||||
@ -733,21 +725,6 @@ class Security extends Controller {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set if passwords should be encrypted or not
|
||||
*
|
||||
* @deprecated 2.4 Use PasswordEncryptor_None instead.
|
||||
*
|
||||
* @param bool $encrypt Set to TRUE if you want that all (new) passwords
|
||||
* will be stored encrypted, FALSE if you want to
|
||||
* store the passwords in clear text.
|
||||
*/
|
||||
public static function encrypt_passwords($encrypt) {
|
||||
Deprecation::notice('2.4', 'Use PasswordEncryptor_None instead.');
|
||||
self::$encryptPasswords = (bool)$encrypt;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get a list of all available encryption algorithms.
|
||||
* Note: These are arbitrary codes, and not callable methods.
|
||||
|
Loading…
x
Reference in New Issue
Block a user