Hi, I'm trying to add ban feature for particular user. So, I'm doing it in this way:
NSString *userName = [[NSUserDefaults standardUserDefaults] stringForKey:@"identity"];
UserService *userService = [App42API buildUserService];
[userService getUser:userName completionBlock:^(BOOL success, id responseObj, App42Exception *exception) {
if (success)
{
User *user = (User*)responseObj;
NSLog(@"userName is %@" , user.userName);
NSLog(@"emailId is %@" , user.email);
NSString *jsonResponse = [user toString];
if (user.isAccountLocked) {
NSLog(@"Account locked");
} else {
NSLog(@"Account not locked");
}
}
else
{
NSLog(@"Exception is %@",[exception reason]);
NSLog(@"HTTP error Code is %d",[exception httpErrorCode]);
NSLog(@"App Error Code is %d",[exception appErrorCode]);
NSLog(@"User Info is %@",[exception userInfo]);
}
}];
I locked user on backend admin panel, but log still the same: "Account not locked".