Showing
1 changed file
with
18 additions
and
9 deletions
... | @@ -1058,17 +1058,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1058,17 +1058,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
1058 | { | 1058 | { |
1059 | if ([_db tableExists:@"requestVariables"] == YES) { | 1059 | if ([_db tableExists:@"requestVariables"] == YES) { |
1060 | FMResultSet *refreshTokenSet = [_db executeQuery:@"SELECT refresh_token FROM requestVariables WHERE id = 1;"]; | 1060 | FMResultSet *refreshTokenSet = [_db executeQuery:@"SELECT refresh_token FROM requestVariables WHERE id = 1;"]; |
1061 | - NSString *refreshToken = [NSString alloc]; | 1061 | +// NSString *refreshToken = [NSString alloc]; |
1062 | + NSString *refreshToken = @""; | ||
1062 | while ([refreshTokenSet next]) { | 1063 | while ([refreshTokenSet next]) { |
1063 | refreshToken = [[refreshTokenSet resultDictionary][@"refresh_token"] stringValue]; | 1064 | refreshToken = [[refreshTokenSet resultDictionary][@"refresh_token"] stringValue]; |
1064 | } | 1065 | } |
1065 | FMResultSet *clientIdSet = [_db executeQuery:@"SELECT client_id FROM requestVariables WHERE id = 1;"]; | 1066 | FMResultSet *clientIdSet = [_db executeQuery:@"SELECT client_id FROM requestVariables WHERE id = 1;"]; |
1066 | - NSString *clientId = [NSString alloc]; | 1067 | +// NSString *clientId = [NSString alloc]; |
1068 | + NSString *clientId = @""; | ||
1067 | while ([clientIdSet next]) { | 1069 | while ([clientIdSet next]) { |
1068 | clientId = [[clientIdSet resultDictionary][@"client_id"] stringValue]; | 1070 | clientId = [[clientIdSet resultDictionary][@"client_id"] stringValue]; |
1069 | } | 1071 | } |
1070 | FMResultSet *clientSecretSet = [_db executeQuery:@"SELECT client_secret FROM requestVariables WHERE id = 1;"]; | 1072 | FMResultSet *clientSecretSet = [_db executeQuery:@"SELECT client_secret FROM requestVariables WHERE id = 1;"]; |
1071 | - NSString *clientSecret = [NSString alloc]; | 1073 | +// NSString *clientSecret = [NSString alloc]; |
1074 | + NSString *clientSecret = @""; | ||
1072 | while ([clientSecretSet next]) { | 1075 | while ([clientSecretSet next]) { |
1073 | clientSecret = [[clientSecretSet resultDictionary][@"client_secret"] stringValue]; | 1076 | clientSecret = [[clientSecretSet resultDictionary][@"client_secret"] stringValue]; |
1074 | } | 1077 | } |
... | @@ -1109,17 +1112,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1109,17 +1112,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
1109 | { | 1112 | { |
1110 | if ([_db tableExists:@"requestVariables"] == YES) { | 1113 | if ([_db tableExists:@"requestVariables"] == YES) { |
1111 | FMResultSet *refreshTokenSet = [_db executeQuery:@"SELECT refresh_token FROM requestVariables WHERE id = 1;"]; | 1114 | FMResultSet *refreshTokenSet = [_db executeQuery:@"SELECT refresh_token FROM requestVariables WHERE id = 1;"]; |
1112 | - NSString *refreshToken = [NSString alloc]; | 1115 | +// NSString *refreshToken = [NSString alloc]; |
1116 | + NSString *refreshToken = @""; | ||
1113 | while ([refreshTokenSet next]) { | 1117 | while ([refreshTokenSet next]) { |
1114 | refreshToken = [[refreshTokenSet resultDictionary][@"refresh_token"] stringValue]; | 1118 | refreshToken = [[refreshTokenSet resultDictionary][@"refresh_token"] stringValue]; |
1115 | } | 1119 | } |
1116 | FMResultSet *clientIdSet = [_db executeQuery:@"SELECT client_id FROM requestVariables WHERE id = 1;"]; | 1120 | FMResultSet *clientIdSet = [_db executeQuery:@"SELECT client_id FROM requestVariables WHERE id = 1;"]; |
1117 | - NSString *clientId = [NSString alloc]; | 1121 | +// NSString *clientId = [NSString alloc]; |
1122 | + NSString *clientId = @""; | ||
1118 | while ([clientIdSet next]) { | 1123 | while ([clientIdSet next]) { |
1119 | clientId = [[clientIdSet resultDictionary][@"client_id"] stringValue]; | 1124 | clientId = [[clientIdSet resultDictionary][@"client_id"] stringValue]; |
1120 | } | 1125 | } |
1121 | FMResultSet *clientSecretSet = [_db executeQuery:@"SELECT client_secret FROM requestVariables WHERE id = 1;"]; | 1126 | FMResultSet *clientSecretSet = [_db executeQuery:@"SELECT client_secret FROM requestVariables WHERE id = 1;"]; |
1122 | - NSString *clientSecret = [NSString alloc]; | 1127 | +// NSString *clientSecret = [NSString alloc]; |
1128 | + NSString *clientSecret = @""; | ||
1123 | while ([clientSecretSet next]) { | 1129 | while ([clientSecretSet next]) { |
1124 | clientSecret = [[clientSecretSet resultDictionary][@"client_secret"] stringValue]; | 1130 | clientSecret = [[clientSecretSet resultDictionary][@"client_secret"] stringValue]; |
1125 | } | 1131 | } |
... | @@ -1160,17 +1166,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1160,17 +1166,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
1160 | { | 1166 | { |
1161 | if ([_db tableExists:@"requestVariables"] == YES) { | 1167 | if ([_db tableExists:@"requestVariables"] == YES) { |
1162 | FMResultSet *refreshTokenSet = [_db executeQuery:@"SELECT refresh_token FROM requestVariables WHERE id = 1;"]; | 1168 | FMResultSet *refreshTokenSet = [_db executeQuery:@"SELECT refresh_token FROM requestVariables WHERE id = 1;"]; |
1163 | - NSString *refreshToken = [NSString alloc]; | 1169 | +// NSString *refreshToken = [NSString alloc]; |
1170 | + NSString *refreshToken = @""; | ||
1164 | while ([refreshTokenSet next]) { | 1171 | while ([refreshTokenSet next]) { |
1165 | refreshToken = [[refreshTokenSet resultDictionary][@"refresh_token"] stringValue]; | 1172 | refreshToken = [[refreshTokenSet resultDictionary][@"refresh_token"] stringValue]; |
1166 | } | 1173 | } |
1167 | FMResultSet *clientIdSet = [_db executeQuery:@"SELECT client_id FROM requestVariables WHERE id = 1;"]; | 1174 | FMResultSet *clientIdSet = [_db executeQuery:@"SELECT client_id FROM requestVariables WHERE id = 1;"]; |
1168 | - NSString *clientId = [NSString alloc]; | 1175 | +// NSString *clientId = [NSString alloc]; |
1176 | + NSString *clientId = @""; | ||
1169 | while ([clientIdSet next]) { | 1177 | while ([clientIdSet next]) { |
1170 | clientId = [[clientIdSet resultDictionary][@"client_id"] stringValue]; | 1178 | clientId = [[clientIdSet resultDictionary][@"client_id"] stringValue]; |
1171 | } | 1179 | } |
1172 | FMResultSet *clientSecretSet = [_db executeQuery:@"SELECT client_secret FROM requestVariables WHERE id = 1;"]; | 1180 | FMResultSet *clientSecretSet = [_db executeQuery:@"SELECT client_secret FROM requestVariables WHERE id = 1;"]; |
1173 | - NSString *clientSecret = [NSString alloc]; | 1181 | +// NSString *clientSecret = [NSString alloc]; |
1182 | + NSString *clientSecret = @""; | ||
1174 | while ([clientSecretSet next]) { | 1183 | while ([clientSecretSet next]) { |
1175 | clientSecret = [[clientSecretSet resultDictionary][@"client_secret"] stringValue]; | 1184 | clientSecret = [[clientSecretSet resultDictionary][@"client_secret"] stringValue]; |
1176 | } | 1185 | } | ... | ... |
-
Please register or login to post a comment