adium 4275:2d15405b6d71: Ask the user to login to Facebook when ...
commits at adium.im
commits at adium.im
Sun Oct 30 18:40:21 UTC 2011
details: http://hg.adium.im/adium/rev/2d15405b6d71
revision: 4275:2d15405b6d71
branch: (none)
author: Frank Dowsett <wixardy at adium.im>
date: Sun Oct 30 13:35:26 2011 -0400
Ask the user to login to Facebook when we get a bad password response. Fixes #15583
diffs (22 lines):
diff -r 4dc8915071c3 -r 2d15405b6d71 Plugins/Purple Service/AIFacebookXMPPAccount.m
--- a/Plugins/Purple Service/AIFacebookXMPPAccount.m Sat Oct 29 23:52:40 2011 -0700
+++ b/Plugins/Purple Service/AIFacebookXMPPAccount.m Sun Oct 30 13:35:26 2011 -0400
@@ -203,13 +203,17 @@
[self requestFacebookAuthorization];
} else {
+ [self setValue:nil
+ forProperty:@"mustPromptForPasswordOnNextConnect"
+ notify:NotifyNever];
[super passwordReturnedForConnect:inPassword returnCode:returnCode context:inContext];
}
}
- (void)retrievePasswordThenConnect
{
- if ([self boolValueForProperty:@"Prompt For Password On Next Connect"])
+ if ([self boolValueForProperty:@"Prompt For Password On Next Connect"] ||
+ [self boolValueForProperty:@"mustPromptForPasswordOnNextConnect"])
/* We attempted to connect, but we had incorrect authorization. Display our auth request window. */
[self requestFacebookAuthorization];
More information about the commits
mailing list