adium 5565:e7882467b4b0: Fix an issue with Facebook authorizatio...
commits at adium.im
commits at adium.im
Thu Jun 13 16:06:58 UTC 2013
details: http://hg.adium.im/adium/rev/e7882467b4b0
revision: 5565:e7882467b4b0
branch: adium-1.6
author: Frank Dowsett <wixardy at adium.im>
date: Thu Jun 13 12:06:15 2013 -0400
Fix an issue with Facebook authorization where it would ask for a password when we already have one. This could happen to a newly created account that was disconnected and reconnected. Refs #16404
diffs (15 lines):
diff -r 4722b3f282de -r e7882467b4b0 Plugins/Purple Service/AIFacebookXMPPAccount.m
--- a/Plugins/Purple Service/AIFacebookXMPPAccount.m Wed Jun 12 21:53:57 2013 -0400
+++ b/Plugins/Purple Service/AIFacebookXMPPAccount.m Thu Jun 13 12:06:15 2013 -0400
@@ -310,6 +310,11 @@
- (void)oAuthWebViewController:(AIFacebookXMPPOAuthWebViewWindowController *)wc didSucceedWithToken:(NSString *)token
{
+ //Clear this value since we have a new password
+ [self setValue:[NSNumber numberWithBool:NO]
+ forProperty:@"Prompt For Password On Next Connect"
+ notify:NotifyNever];
+
[self setOAuthToken:token];
NSString *urlstring = [NSString stringWithFormat:@"https://graph.facebook.com/me?access_token=%@", [self oAuthToken]];
More information about the commits
mailing list