From 2c9ab5d153cc7837d3c9bffc71a50ba915795862 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Mon, 17 Apr 2017 22:13:01 -0400 Subject: [PATCH] Fixed issue when cancelling touchID login. --- platform-darwin/Source/MPAppDelegate_Key.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform-darwin/Source/MPAppDelegate_Key.m b/platform-darwin/Source/MPAppDelegate_Key.m index 2a7ada9b..21c84720 100644 --- a/platform-darwin/Source/MPAppDelegate_Key.m +++ b/platform-darwin/Source/MPAppDelegate_Key.m @@ -82,8 +82,11 @@ static NSDictionary *createKeyQuery(MPUserEntity *user, BOOL newItem, MPKeyOrigi if ([key keyIDForAlgorithm:user.algorithm]) inf( @"Found key in keychain for user: %@", user.userID ); - else + + else { inf( @"No key found in keychain for user: %@", user.userID ); + key = nil; + } return key; }