This commit is contained in:
Hamza-Ayed
2026-04-30 16:17:26 +03:00
parent d31d99e132
commit 7bf5200cd3
3 changed files with 21 additions and 16 deletions

View File

@@ -17,9 +17,10 @@ if (empty($fingerprint) || empty($password)) {
try {
$con = Database::get('main');
// البحث عن المشرف باستخدام بصمة الجهاز (Fingerprint)
$stmt = $con->prepare("SELECT * FROM adminUser WHERE fingerprint = :fp LIMIT 1");
$stmt->execute([':fp' => $fingerprint]);
// البحث عن المشرف باستخدام بصمة الجهاز (Fingerprint Hash)
$fpHash = hash('sha256', $fingerprint);
$stmt = $con->prepare("SELECT * FROM adminUser WHERE fingerprint_hash = :fp LIMIT 1");
$stmt->execute([':fp' => $fpHash]);
$admin = $stmt->fetch(PDO::FETCH_ASSOC);
if ($admin) {