Skip to content

Commit

Permalink
Google Login Fixes
Browse files Browse the repository at this point in the history
Google has updated their login system and VoiceBase needed an update to work with it.
  • Loading branch information
GRMrGecko committed Oct 30, 2013
1 parent 6251380 commit fdfed86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Classes/VoiceBase/MGMInstance.m
Expand Up @@ -423,7 +423,7 @@ - (void)indexDidFinish:(MGMURLBasicHandler *)theHandler {
[handler setFinish:@selector(indexDidFinish:)];
[handler setInvisible:MGMInstanceInvisible];
[connectionManager addHandler:handler];
} else if ([returnedString containsString:@"<div class=\"sign-in\""]) {
} else if ([returnedString containsString:@"id=\"gaia_loginform\""]) {
if (webLoginTries>2) {
NSError *error = [NSError errorWithDomain:@"com.MrGeckosMedia.MGMInstance.Login" code:1 userInfo:[NSDictionary dictionaryWithObject:@"Unable to login. Please check your Credentials." forKey:NSLocalizedDescriptionKey]];
if (delegate!=nil && [delegate respondsToSelector:@selector(loginError:)]) {
Expand Down Expand Up @@ -728,6 +728,9 @@ - (void)verifyWithCode:(NSString *)theCode {
[request setHTTPMethod:MGMPostMethod];
[request setValue:MGMURLForm forHTTPHeaderField:MGMContentType];
[verificationParameters setObject:theCode forKey:@"smsUserPin"];
[verificationParameters setObject:@"1" forKey:@"pstMsg"];
[verificationParameters removeObjectForKey:@"retry"];
[verificationParameters removeObjectForKey:@"smsSend"];
NSArray *parametersKeys = [verificationParameters allKeys];
NSMutableString *bodyString = [NSMutableString string];
for (int i=0; i<[parametersKeys count]; i++) {
Expand Down
4 changes: 2 additions & 2 deletions Resources/VoiceMac/Info.plist
Expand Up @@ -68,7 +68,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4</string>
<string>0.4.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down Expand Up @@ -105,7 +105,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>0.4</string>
<string>0.4.1</string>
<key>MGMGRBugsEmail</key>
<string>bugs@mrgeckosmedia.com</string>
<key>MGMGRContactEmail</key>
Expand Down

0 comments on commit fdfed86

Please sign in to comment.