mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Minor security class refactoring.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7659 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
eb7fb6d7e3
commit
ee36956000
1 changed files with 1 additions and 3 deletions
|
@ -87,11 +87,10 @@ class Security extends Object {
|
||||||
* @static
|
* @static
|
||||||
*/
|
*/
|
||||||
function generateAuthKey() {
|
function generateAuthKey() {
|
||||||
$_this =& Security::getInstance();
|
|
||||||
if(!class_exists('String')) {
|
if(!class_exists('String')) {
|
||||||
App::import('Core', 'String');
|
App::import('Core', 'String');
|
||||||
}
|
}
|
||||||
return $_this->hash(String::uuid());
|
return Security::hash(String::uuid());
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Validate authorization hash.
|
* Validate authorization hash.
|
||||||
|
@ -102,7 +101,6 @@ class Security extends Object {
|
||||||
* @static
|
* @static
|
||||||
*/
|
*/
|
||||||
function validateAuthKey($authKey) {
|
function validateAuthKey($authKey) {
|
||||||
$_this =& Security::getInstance();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue