Update: 2026-05-13 22:58:30

This commit is contained in:
Hamza-Ayed
2026-05-13 22:58:30 +03:00
parent 30da101415
commit 1ca7e01ce0
7 changed files with 227 additions and 22 deletions

View File

@@ -31,12 +31,20 @@ class BiometricController extends GetxController {
}
Future<void> authenticateAndGoToDashboard() async {
// REVIEWER BYPASS: If the user is the app reviewer, skip biometrics entirely
final userEmail = await _storage.getEmail();
if (userEmail == 'reviewer@musadaq.jo') {
AppLogger.print('Reviewer account detected. Bypassing biometrics.');
Get.offAllNamed(AppRoutes.MAIN);
return;
}
// Ensure we have checked biometric status first
await checkBiometrics();
if (!isBiometricAvailable.value) {
AppLogger.print('Biometrics not available, going directly to dashboard.');
Get.offAllNamed(AppRoutes.DASHBOARD);
Get.offAllNamed(AppRoutes.MAIN);
return;
}