mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[feature/passwords] Add function for obtaining only the hash to helper
This is also needed for combined hashing of passwords. PHPBB3-11610
This commit is contained in:
parent
16e5d0dc35
commit
c67f7dba60
@ -145,4 +145,15 @@ class phpbb_crypto_helper
|
||||
$rebuilt_hash .= $settings;
|
||||
return $rebuilt_hash;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtain only the actual hash after the prefixes
|
||||
*
|
||||
* @param string $hash The full password hash
|
||||
* @return string Actual hash (incl. settings)
|
||||
*/
|
||||
protected function obtain_hash_only($hash)
|
||||
{
|
||||
return substr($hash, strripos($hash, '$') + 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user