add certificates
This commit is contained in:
@@ -111,7 +111,13 @@ if (!function_exists('ci_password_verify')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (strpos($storedHash, ':') !== false || strpos($storedHash, '$') !== false) {
|
||||
$hashInfo = password_get_info($storedHash);
|
||||
if (($hashInfo['algo'] ?? null) !== null) {
|
||||
return Hash::check($password, $storedHash);
|
||||
}
|
||||
|
||||
$parts = preg_split('/[:$]/', $storedHash);
|
||||
if (is_array($parts) && count($parts) === 4) {
|
||||
return pbkdf2_verify($password, $storedHash);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user