Ticket #1519: mobile-colloquy-keychain-fix.patch
| File mobile-colloquy-keychain-fix.patch, 3.4 KB (added by jane, 3 years ago) |
|---|
-
Mobile/Controllers/CQConnectionsController.m
414 414 [[CQKeychain standardKeychain] setPassword:password forServer:connection.server account:connection.preferredNickname]; 415 415 416 416 if ((password = [info objectForKey:@"password"])) 417 [[CQKeychain standardKeychain] setPassword:password forServer:connection.server account: @"<<server password>>"];417 [[CQKeychain standardKeychain] setPassword:password forServer:connection.server account:connection.displayName]; 418 418 419 419 if ((password = [[CQKeychain standardKeychain] passwordForServer:connection.server account:connection.preferredNickname]) && password.length) 420 420 connection.nicknamePassword = password; 421 421 422 if ((password = [[CQKeychain standardKeychain] passwordForServer:connection.server account: @"<<server password>>"]) && password.length)422 if ((password = [[CQKeychain standardKeychain] passwordForServer:connection.server account:connection.displayName]) && password.length) 423 423 connection.password = password; 424 424 425 425 [_connections addObject:connection]; -
Mobile/Controllers/CQConnectionEditViewController.m
261 261 262 262 BOOL placeholder = isPlaceholderValue(_connection.server); 263 263 if (wasPlaceholder && !placeholder) { 264 [[CQKeychain standardKeychain] setPassword:_connection.password forServer:_connection.server account: @"<<server password>>"];264 [[CQKeychain standardKeychain] setPassword:_connection.password forServer:_connection.server account:_connection.displayName]; 265 265 [[CQKeychain standardKeychain] setPassword:_connection.nicknamePassword forServer:_connection.server account:currentPreferredNickname(_connection)]; 266 266 } else if (!placeholder) { 267 _connection.password = [[CQKeychain standardKeychain] passwordForServer:_connection.server account: @"<<server password>>"];267 _connection.password = [[CQKeychain standardKeychain] passwordForServer:_connection.server account:_connection.displayName]; 268 268 _connection.nicknamePassword = [[CQKeychain standardKeychain] passwordForServer:_connection.server account:currentPreferredNickname(_connection)]; 269 269 } else { 270 270 _connection.password = nil; -
Mobile/Controllers/CQConnectionAdvancedEditController.m
1 1 #import "CQConnectionAdvancedEditController.h" 2 2 3 #import "CQConnectionEditViewController.h" 3 4 #import "CQConnectionsController.h" 4 5 #import "CQPreferencesSwitchCell.h" 5 6 #import "CQPreferencesListViewController.h" … … 291 292 _connection.password = sender.text; 292 293 293 294 if (!isPlaceholderValue(_connection.server)) 294 [[CQKeychain standardKeychain] setPassword:_connection.password forServer:_connection.server account: @"<<server password>>"];295 [[CQKeychain standardKeychain] setPassword:_connection.password forServer:_connection.server account:_connection.displayName]; 295 296 } 296 297 297 298 - (void) nicknamePasswordChanged:(CQPreferencesTextCell *) sender {
