Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

no second prompt

roryclearac06be668d21
diff --git a/clearcam/SettingsViewController.m b/clearcam/SettingsViewController.m
index 7ce0836..8e5b93c 100644
--- a/clearcam/SettingsViewController.m
+++ b/clearcam/SettingsViewController.m
@@ -923,14 +923,12 @@
if (success) {
self.isUserIDVisible = YES;
[self.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:1 inSection:4]] withRowAnimation:UITableViewRowAnimationFade];
- } else {
- // Fallback to password authentication if biometric fails
+ } else if (error.code != LAErrorUserCancel && error.code != LAErrorAuthenticationFailed) {
[self promptForPasswordToRevealUserID];
}
});
}];
} else {
- // If biometrics are not available, prompt for password
[self promptForPasswordToRevealUserID];
}
}