diff --git a/XCreds/MainController.swift b/XCreds/MainController.swift index 031f0b2..803065c 100644 --- a/XCreds/MainController.swift +++ b/XCreds/MainController.swift @@ -63,6 +63,11 @@ class MainController: NSObject { if verifyCloudPassword == cloudPassword { try? PasswordUtils.changeLocalUserAndKeychainPassword(localPassword, newPassword1: cloudPassword, newPassword2: cloudPassword) + let err = keychainUtil.updatePassword("local password", pass: localPassword) + if err == false { + //TODO: Log Error + } + verifyOIDPassword.window?.close() break; diff --git a/XCreds/ScheduleManager.swift b/XCreds/ScheduleManager.swift index c6c850e..41bf947 100644 --- a/XCreds/ScheduleManager.swift +++ b/XCreds/ScheduleManager.swift @@ -45,9 +45,7 @@ class ScheduleManager { } else { - if let timer = self.timer { - timer.invalidate() - } + self.stopCredentialCheck() NotifyManager.shared.sendMessage(message: "Azure password changed or not set") DispatchQueue.main.async { mainMenu.webView = WebViewController() diff --git a/XCreds/WebView.swift b/XCreds/WebView.swift index 2bf2db7..7bda526 100644 --- a/XCreds/WebView.swift +++ b/XCreds/WebView.swift @@ -214,6 +214,8 @@ extension WebViewController: OIDCLiteDelegate { func authFailure(message: String) { print("Auth failure :(") + NotificationCenter.default.post(name: Notification.Name("TCSTokensUpdated"), object: self, userInfo:[:]) + } func tokenResponse(tokens: OIDCLiteTokenResponse) { diff --git a/xCreds.xcodeproj/project.pbxproj b/xCreds.xcodeproj/project.pbxproj index f907b82..517a6a8 100644 --- a/xCreds.xcodeproj/project.pbxproj +++ b/xCreds.xcodeproj/project.pbxproj @@ -369,7 +369,7 @@ CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1253; + CURRENT_PROJECT_VERSION = 1254; DEVELOPMENT_TEAM = UXP6YEHSPW; ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; @@ -398,7 +398,7 @@ CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1253; + CURRENT_PROJECT_VERSION = 1254; DEVELOPMENT_TEAM = UXP6YEHSPW; ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; diff --git a/xCreds.xcodeproj/project.xcworkspace/xcuserdata/tperfitt.xcuserdatad/UserInterfaceState.xcuserstate b/xCreds.xcodeproj/project.xcworkspace/xcuserdata/tperfitt.xcuserdatad/UserInterfaceState.xcuserstate index 13440c0..3c9cb4d 100644 Binary files a/xCreds.xcodeproj/project.xcworkspace/xcuserdata/tperfitt.xcuserdatad/UserInterfaceState.xcuserstate and b/xCreds.xcodeproj/project.xcworkspace/xcuserdata/tperfitt.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/xCreds.xcodeproj/xcuserdata/tperfitt.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/xCreds.xcodeproj/xcuserdata/tperfitt.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index 0516c53..0ac9173 100644 --- a/xCreds.xcodeproj/xcuserdata/tperfitt.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/xCreds.xcodeproj/xcuserdata/tperfitt.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -68,21 +68,5 @@ landmarkType = "7"> - - - -