Vasilis

fix for compilation error

......@@ -600,12 +600,13 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
} else {
[_db executeUpdate:@"UPDATE requestVariables SET client_id = ? , client_secret = ? WHERE id = 1", clientId, clientSecret];
}
NSDictionary *postDictionary2 = [NSDictionary alloc];
if ([loginType isEqual:@"email"]) {
NSDictionary *postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"email":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] };
postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"email":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] };
} else if ([loginType isEqual:@"msdisdn"]) {
NSDictionary *postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"msisdn":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] };
postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"msisdn":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] };
} else {
NSDictionary *postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"username":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] };
postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"username":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] };
}
NSData *jsonData2 = [NSJSONSerialization dataWithJSONObject:postDictionary2 options:0 error:NULL];
[self sendContext4:jsonData2 successBlock:^(NSDictionary *contextResponse) {
......