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:
nate 2008-09-24 23:05:51 +00:00
parent eb7fb6d7e3
commit ee36956000

View file

@ -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;
} }
/** /**