Update: 2026-06-25 01:22:26
This commit is contained in:
@@ -45,7 +45,7 @@ try {
|
||||
$fpJustSaved = false;
|
||||
if ($row) {
|
||||
$fpPepper = getenv('FP_PEPPER') ?: '';
|
||||
$storedFp = $row['fingerprint'];
|
||||
$storedFp = $row['fingerPrint'] ?? $row['fingerprint'] ?? '';
|
||||
|
||||
// دعم الطريقة الجديدة (hash) والقديمة (مباشر)
|
||||
if ($fpPepper) {
|
||||
@@ -95,4 +95,7 @@ try {
|
||||
} catch (Exception $e) {
|
||||
securityLog("Login Error", ['msg' => $e->getMessage()]);
|
||||
jsonError('Server error', 500);
|
||||
} catch (\Throwable $e) {
|
||||
securityLog("Login Fatal Error", ['msg' => $e->getMessage()]);
|
||||
jsonError('Server error', 500);
|
||||
}
|
||||
Reference in New Issue
Block a user