mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Deprecate bad methods.
These methods are bad and should feel bad.
This commit is contained in:
parent
7df99fff1f
commit
7e5f56362f
1 changed files with 3 additions and 1 deletions
|
@ -61,6 +61,7 @@ class Security {
|
|||
* Generate authorization hash.
|
||||
*
|
||||
* @return string Hash
|
||||
* @deprecated 2.8.1 This method was removed in 3.0.0
|
||||
*/
|
||||
public static function generateAuthKey() {
|
||||
return Security::hash(CakeText::uuid());
|
||||
|
@ -71,6 +72,7 @@ class Security {
|
|||
*
|
||||
* @param string $authKey Authorization hash
|
||||
* @return bool Success
|
||||
* @deprecated 2.8.1 This method was removed in 3.0.0
|
||||
*/
|
||||
public static function validateAuthKey($authKey) {
|
||||
return true;
|
||||
|
@ -92,7 +94,7 @@ class Security {
|
|||
* Creating a blowfish/bcrypt hash:
|
||||
*
|
||||
* ```
|
||||
* $hash = Security::hash($password, 'blowfish');
|
||||
* $hash = Security::hash($password, 'blowfish');
|
||||
* ```
|
||||
*
|
||||
* @param string $string String to hash
|
||||
|
|
Loading…
Reference in a new issue