mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-15 01:02:24 +00:00
changed password input to use block based api
This commit is contained in:
@@ -323,7 +323,10 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
|
||||
self.passwordInputController = [[MPPasswordInputController alloc] init];
|
||||
}
|
||||
[self _setContentViewController:self.passwordInputController];
|
||||
[self.passwordInputController requestPassword];
|
||||
__weak MPDocumentWindowController *welf = self;
|
||||
[self.passwordInputController requestPassword:^BOOL(NSString *password, NSURL *keyURL, NSError *__autoreleasing *error) {
|
||||
return [((MPDocument *)welf.document) unlockWithPassword:password keyFileURL:keyURL error:error];
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)editPassword:(id)sender {
|
||||
|
||||
Reference in New Issue
Block a user