- Fix check currentUser

This commit is contained in:
giuseppenuc committed 2016-02-05 11:36:46 +01:00
1 parent 6935f77852
commit fef5277f7f
5 files changed
+60 -51

No files matched your search

+2
View File
@@ -29,6 +29,8 @@
*/
- (void) logout;
- (BOOL) isValidUser;
//- (void) setPassword:(NSString * _Nonnull)password inBackGroundWithBlock:(nullable void (^)(BOOL saveStatus, id responseObject, NSError * error)) responseBlock;
///--------------------------------------
+8
View File
@@ -102,6 +102,14 @@ static bool isFirstAccess = YES;
[self resetObject];
}
- (BOOL) isValidUser {
if(self.username && self.password && [self isValidPassword:[self password]]){
return YES;
}
return NO;
}
#pragma mark PNObjectSubclassing Protocol
+ (NSDictionary *)objcetMapping {