Showing
2 changed files
with
6 additions
and
0 deletions
... | @@ -600,7 +600,13 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -600,7 +600,13 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
600 | } else { | 600 | } else { |
601 | [_db executeUpdate:@"UPDATE requestVariables SET client_id = ? , client_secret = ? WHERE id = 1", clientId, clientSecret]; | 601 | [_db executeUpdate:@"UPDATE requestVariables SET client_id = ? , client_secret = ? WHERE id = 1", clientId, clientSecret]; |
602 | } | 602 | } |
603 | + if ([loginType isEqual:@"email"]) { | ||
603 | NSDictionary *postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"email":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] }; | 604 | NSDictionary *postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"email":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] }; |
605 | + } else if ([loginType isEqual:@"msdisdn"]) { | ||
606 | + NSDictionary *postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"msisdn":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] }; | ||
607 | + } else { | ||
608 | + NSDictionary *postDictionary2 = @{@"app_id": [contextResponse objectForKey:@"app_id"], @"client_id": clientId, @"confirm": @"yes", @"username":id, @"response_type":@"code", @"scope": [loginType stringByAppendingString:@" app_id"] }; | ||
609 | + } | ||
604 | NSData *jsonData2 = [NSJSONSerialization dataWithJSONObject:postDictionary2 options:0 error:NULL]; | 610 | NSData *jsonData2 = [NSJSONSerialization dataWithJSONObject:postDictionary2 options:0 error:NULL]; |
605 | [self sendContext4:jsonData2 successBlock:^(NSDictionary *contextResponse) { | 611 | [self sendContext4:jsonData2 successBlock:^(NSDictionary *contextResponse) { |
606 | if (success) { | 612 | if (success) { | ... | ... |
-
Please register or login to post a comment