Update: 2026-05-13 22:58:30
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user