Browse Source

Removing crazy method in Security class

Jose Lorenzo Rodriguez 12 years ago
parent
commit
d029a728ad
2 changed files with 0 additions and 20 deletions
  1. 0 10
      src/Utility/Security.php
  2. 0 10
      tests/TestCase/Utility/SecurityTest.php

+ 0 - 10
src/Utility/Security.php

@@ -47,16 +47,6 @@ class Security {
 	}
 
 /**
- * Validate authorization hash.
- *
- * @param string $authKey Authorization hash
- * @return bool Success
- */
-	public static function validateAuthKey($authKey) {
-		return true;
-	}
-
-/**
  * Create a hash from string using given method or fallback on next available method.
  *
  * #### Using Blowfish

+ 0 - 10
tests/TestCase/Utility/SecurityTest.php

@@ -34,16 +34,6 @@ class SecurityTest extends TestCase {
 	}
 
 /**
- * testValidateAuthKey method
- *
- * @return void
- */
-	public function testValidateAuthKey() {
-		$authKey = Security::generateAuthKey();
-		$this->assertTrue(Security::validateAuthKey($authKey));
-	}
-
-/**
  * testHashInvalidSalt method
  *
  * @expectedException \Cake\Error\Exception