mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 01:08:52 +00: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
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue