add certificates

This commit is contained in:
root
2026-05-18 00:07:30 -04:00
parent df5266c5b5
commit fa6c9519a0
18 changed files with 717 additions and 14 deletions
+7 -1
View File
@@ -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);
}