Skip to content

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

disable if no password

roryclearc67891791f29
diff --git a/clearcam/SettingsViewController.m b/clearcam/SettingsViewController.m
index 7632f01..c24960b 100644
--- a/clearcam/SettingsViewController.m
+++ b/clearcam/SettingsViewController.m
@@ -841,7 +841,12 @@
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setBool:self.useOwnServerEnabled forKey:@"use_own_server_enabled"];
[defaults synchronize];
- if (!self.useOwnServerEnabled && ![defaults boolForKey:@"isSubscribed"]) {
+
+ // Check subscription status and password
+ BOOL isPremium = [defaults boolForKey:@"isSubscribed"];
+ NSString *password = [self retrievePasswordFromSecretsManager];
+
+ if (!self.useOwnServerEnabled && (!isPremium || !password)) {
self.sendNotifEnabled = NO;
[defaults setBool:NO forKey:@"send_notif_enabled"];
[defaults synchronize];