summaryrefslogtreecommitdiff
path: root/Juick/Model/User.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-10-31 16:16:48 +0300
committerGravatar Vitaly Takmazov2020-05-12 16:38:25 +0300
commit9d78e7d654c51c22ce4be87efef5bc1f8d5a2d08 (patch)
treedfb028dfca07fdb7bbacc00771f9e865f28fd6d4 /Juick/Model/User.m
parent742e1a0e615a7e07a9f4b4c249227cd63839325f (diff)
Fix authentication
Diffstat (limited to 'Juick/Model/User.m')
-rw-r--r--Juick/Model/User.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Juick/Model/User.m b/Juick/Model/User.m
index 94b77c4..a0c34f9 100644
--- a/Juick/Model/User.m
+++ b/Juick/Model/User.m
@@ -7,7 +7,6 @@
//
#import "User.h"
-#import "APIClient.h"
@implementation User
@@ -16,6 +15,7 @@
user.uid = jsonData[@"uid"];
user.uname = jsonData[@"uname"];
user.avatar = jsonData[@"avatar"];
+ user.token = jsonData[@"hash"];
user.unreadCount = [jsonData[@"messagesCount"] integerValue];
return user;
}