From 5fd1f32d4cd05c37252ce40fd77ecd7eaea621e9 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Tue, 8 Sep 2026 14:08:24 +0300 Subject: [PATCH] Update Saqel Platform: 2026-09-08 14:08:24 --- backend/scripts/provision_staff_account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/scripts/provision_staff_account.php b/backend/scripts/provision_staff_account.php index 63a78c3..ff0c682 100644 --- a/backend/scripts/provision_staff_account.php +++ b/backend/scripts/provision_staff_account.php @@ -55,7 +55,7 @@ try { $staffId = (int)$staff['id']; $action = 'updated'; } else { - $uuid = sprintf('%04x%04x-%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000, mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)); + $uuid = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000, mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)); $staffId = Database::insert('INSERT INTO staff_accounts (uuid, identity_id, full_name, role, school_id, directorate_id, status) VALUES (?, ?, ?, ?, ?, ?, \'active\')', [$uuid, $identityId, $name, $role, $schoolId, $directorateId]); $action = 'created'; }