Support Android share-driven credential lookup
This commit is contained in:
@@ -140,6 +140,7 @@ type statePaths struct {
|
||||
AutofillCachePath string
|
||||
PendingSharedVaultPath string
|
||||
PendingSharedVaultNamePath string
|
||||
PendingSharedLookupPath string
|
||||
}
|
||||
|
||||
type recentVaultRecord struct {
|
||||
@@ -474,6 +475,8 @@ type ui struct {
|
||||
autofillCachePath string
|
||||
pendingSharedVaultPath string
|
||||
pendingSharedVaultNamePath string
|
||||
pendingSharedLookupPath string
|
||||
pendingSharedLookupQuery string
|
||||
editingEntry bool
|
||||
syncDefaultSourceMode syncSourceMode
|
||||
syncDefaultDirection syncDirection
|
||||
@@ -656,6 +659,7 @@ func newUIWithState(mode string, sess appstate.CurrentSession, paths statePaths)
|
||||
autofillCachePath: paths.AutofillCachePath,
|
||||
pendingSharedVaultPath: paths.PendingSharedVaultPath,
|
||||
pendingSharedVaultNamePath: paths.PendingSharedVaultNamePath,
|
||||
pendingSharedLookupPath: paths.PendingSharedLookupPath,
|
||||
recentVaultGroups: map[string][]string{},
|
||||
recentVaultUsedAt: map[string]time.Time{},
|
||||
lifecycleAdvancedHidden: true,
|
||||
@@ -704,6 +708,7 @@ func newUIWithState(mode string, sess appstate.CurrentSession, paths statePaths)
|
||||
u.showStatusMessage("Some saved remote sign-ins came from an older KeePassGO build. Reopen those remotes and save them in the vault to migrate them.")
|
||||
}
|
||||
u.consumePendingSharedVaultImport()
|
||||
u.consumePendingSharedLookup()
|
||||
u.restoreStartupLifecycleTarget()
|
||||
u.requestMasterPassFocus = u.hasSelectedLifecycleTarget()
|
||||
u.loadUIPreferences()
|
||||
@@ -785,6 +790,7 @@ func defaultStatePaths(stateDir string) statePaths {
|
||||
AutofillCachePath: filepath.Join(baseDir, "autofill-cache.json"),
|
||||
PendingSharedVaultPath: filepath.Join(baseDir, "pending-shared-vault.kdbx"),
|
||||
PendingSharedVaultNamePath: filepath.Join(baseDir, "pending-shared-vault-name.txt"),
|
||||
PendingSharedLookupPath: filepath.Join(baseDir, "pending-shared-lookup.txt"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user