Skip to content

Commit

Permalink
Merge branch 'anya/fix-autofill-auth-issue' into hotfix/7.88.1-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed Sep 11, 2023
2 parents 40402c4 + 04002f3 commit f7bade3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo/AutofillLoginDetailsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class AutofillLoginDetailsViewController: UIViewController {

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
if !authenticationNotRequired {
if !authenticationNotRequired && authenticator.state == .loggedIn {
authenticator.authenticate()
}
}
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/AutofillLoginSettingsListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ final class AutofillLoginSettingsListViewController: UIViewController {

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if viewModel.authenticator.canAuthenticate() {
if viewModel.authenticator.canAuthenticate() && viewModel.authenticator.state == .loggedIn {
AppDependencyProvider.shared.autofillLoginSession.startSession()
}
}
Expand Down

0 comments on commit f7bade3

Please sign in to comment.