diff --git a/MacPass/Base.lproj/PasswordInputView.xib b/MacPass/Base.lproj/PasswordInputView.xib index 24b65fbf2..88ade066b 100644 --- a/MacPass/Base.lproj/PasswordInputView.xib +++ b/MacPass/Base.lproj/PasswordInputView.xib @@ -1,8 +1,8 @@ - + - + @@ -16,16 +16,17 @@ + - + - + @@ -46,13 +47,13 @@ DQ - + - + @@ -60,7 +61,7 @@ DQ - + @@ -68,7 +69,7 @@ DQ - + @@ -85,14 +86,14 @@ DQ + - - + + @@ -145,14 +156,17 @@ Gw + + + - + diff --git a/MacPass/MPPasswordInputController.m b/MacPass/MPPasswordInputController.m index e71838a1d..a41c165e7 100644 --- a/MacPass/MPPasswordInputController.m +++ b/MacPass/MPPasswordInputController.m @@ -54,6 +54,7 @@ @interface MPPasswordInputController () @property (nonatomic, assign) BOOL enablePassword; @property (copy) passwordInputCompletionBlock completionHandler; @property (nonatomic, readonly) NSString *databaseName; +@property (weak) IBOutlet NSButton *useTouchIdButton; @end @implementation MPPasswordInputController @@ -195,7 +196,9 @@ - (void)_showError:(NSError *)error { self.messageImageView.image = [NSImage imageNamed:NSImageNameCaution]; self.messageInfoTextField.hidden = NO; } - +- (IBAction)showTouchIdDialog:(id)sender { + [self _enableTouchID]; +} - (NSTouchBar *)makeTouchBar { NSTouchBar *touchBar = [[NSTouchBar alloc] init];