Skip to content

Commit

Permalink
Fix salt extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Meyer committed Nov 4, 2014
1 parent 9927738 commit 8913bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Authentication/Backend/DbUserBackend.php
Expand Up @@ -129,7 +129,7 @@ public function authenticate(User $user, $password)
*/
protected function getSalt($hash)
{
return substr($hash, strlen(self::HASH_ALGORITHM) + self::SALT_LENGTH);
return substr($hash, strlen(self::HASH_ALGORITHM), self::SALT_LENGTH);
}

/**
Expand Down

0 comments on commit 8913bf5

Please sign in to comment.