adium/adium

Parents 4722b3f282de
Children e9d7a175d087
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
--- 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]];