From 7d16bf22b2ae69a7a6512587b28414a59aa95995 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 21 Mar 2019 13:55:21 +0300 Subject: Move isAuthenticated to APIClient --- Juick/Model/User.h | 2 -- Juick/Model/User.m | 5 ----- 2 files changed, 7 deletions(-) (limited to 'Juick/Model') diff --git a/Juick/Model/User.h b/Juick/Model/User.h index 6265687..4a4988a 100644 --- a/Juick/Model/User.h +++ b/Juick/Model/User.h @@ -15,8 +15,6 @@ + (User *) fromJSON:(NSDictionary *)jsonData; -+ (BOOL) isAuthenticated; - + (void) throwUnableToLogin:(UIViewController *)view error:(NSError *)error; @end diff --git a/Juick/Model/User.m b/Juick/Model/User.m index 344eb7b..5c5e553 100644 --- a/Juick/Model/User.m +++ b/Juick/Model/User.m @@ -19,11 +19,6 @@ return user; } -+(BOOL) isAuthenticated { - NSString *password = [SAMKeychain passwordForService:[[NSBundle mainBundle] bundleIdentifier] account:@"com.juick.password"]; - return password != nil; -} - +(void) throwUnableToLogin:(UIViewController *)view error:(NSError *)error { UIAlertController *alert = [UIAlertController new]; [alert setTitle:@"Something went wrong"]; -- cgit v1.2.3