summaryrefslogtreecommitdiff
path: root/Juick/Model/User.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-21 13:55:21 +0300
committerGravatar Vitaly Takmazov2019-03-21 14:09:26 +0300
commit7d16bf22b2ae69a7a6512587b28414a59aa95995 (patch)
treef73a738757acdbec36f123c4162127d6b1eb4330 /Juick/Model/User.m
parent2ddd7f7964d09236b43485c795970038dd1c309f (diff)
Move isAuthenticated to APIClient
Diffstat (limited to 'Juick/Model/User.m')
-rw-r--r--Juick/Model/User.m5
1 files changed, 0 insertions, 5 deletions
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"];