Made it return a 1 or a 0 for a bool
[MenuTunes.git] / NetworkObject.m
index a29c3f5..8721e98 100755 (executable)
@@ -53,7 +53,7 @@
 
 - (BOOL)requiresPassword
 {
-    return [[NSUserDefaults standardUserDefaults] boolForKey:@"enableSharingPassword"];
+    return ([[[NSUserDefaults standardUserDefaults] dataForKey:@"sharedPlayerPassword"] length] > 0);
 }
 
 - (BOOL)sendPassword:(NSData *)password
     _valid = NO;
 }
 
+- (void)makeValid
+{
+    _valid = YES;
+}
+
 - (BOOL)isValid
 {
     return _valid;