Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #3598: Disable users passcode when deleting & reinstalling the app
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed May 3, 2021
1 parent ac790a3 commit 75906fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Client/Application/Delegates/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UIViewControllerRestorati

window!.makeKeyAndVisible()

let isFirstLaunch = Preferences.General.isFirstLaunch.value
if isFirstLaunch {
KeychainWrapper.sharedAppContainerKeychain.setAuthenticationInfo(nil)
}

authenticator = AppAuthenticator(protectedWindow: window!, promptImmediately: true, isPasscodeEntryCancellable: false)

if Preferences.Rewards.isUsingBAP.value == nil {
Expand All @@ -272,7 +277,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UIViewControllerRestorati
// that is an iOS bug or not.
AutocompleteTextField.appearance().semanticContentAttribute = .forceLeftToRight

let isFirstLaunch = Preferences.General.isFirstLaunch.value
if Preferences.General.basicOnboardingCompleted.value == OnboardingState.undetermined.rawValue {
Preferences.General.basicOnboardingCompleted.value =
isFirstLaunch ? OnboardingState.unseen.rawValue : OnboardingState.completed.rawValue
Expand Down

0 comments on commit 75906fe

Please sign in to comment.