Skip to content
Snippets Groups Projects
Commit 8894fbd0 authored by George Nachman's avatar George Nachman
Browse files

If no local authentication policy can succeed, then authenticate the password...

If no local authentication policy can succeed, then authenticate the password manager. This is the previous behavior from 3.1.1. Apparently OS X 10.11 has the APIs but can't authenticate with them. Issue 6113
parent efef26d5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -303,13 +303,8 @@ static BOOL sAuthenticated;
LAContext *myContext = [[[LAContext alloc] init] autorelease];
NSString *reason = nil;
if (![self tryToAuthenticateWithPolicy:LAPolicyDeviceOwnerAuthentication context:myContext reason:&reason]) {
DLog(@"There are no auth policies that can succeed on this machine. Giving up.");
NSAlert *alert = [[[NSAlert alloc] init] autorelease];
alert.messageText = @"Authentication Failed";
alert.informativeText = [NSString stringWithFormat:@"Device owner auth not available: %@", reason];
[alert addButtonWithTitle:@"OK"];
[alert runModal];
DLog(@"There are no auth policies that can succeed on this machine. Giving up. %@", reason);
sAuthenticated = YES;
}
}
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment