Skip to content

Commit

Permalink
Removing crazy method in Security class
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 3, 2014
1 parent 6e363d3 commit d029a72
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/Utility/Security.php
Expand Up @@ -46,16 +46,6 @@ public static function generateAuthKey() {
return Security::hash(String::uuid());
}

/**
* 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.
*
Expand Down
10 changes: 0 additions & 10 deletions tests/TestCase/Utility/SecurityTest.php
Expand Up @@ -33,16 +33,6 @@ public function testGenerateAuthkey() {
$this->assertEquals(strlen(Security::generateAuthKey()), 40);
}

/**
* testValidateAuthKey method
*
* @return void
*/
public function testValidateAuthKey() {
$authKey = Security::generateAuthKey();
$this->assertTrue(Security::validateAuthKey($authKey));
}

/**
* testHashInvalidSalt method
*
Expand Down

0 comments on commit d029a72

Please sign in to comment.