mirror of https://github.com/keeweb/keeweb
disabled touch id check
parent
fdc9ac95d2
commit
59616bd8af
|
@ -312,17 +312,6 @@ const Launcher = {
|
|||
},
|
||||
setGlobalShortcuts(appSettings) {
|
||||
this.remoteApp().setGlobalShortcuts(appSettings);
|
||||
},
|
||||
hasTouchId() {
|
||||
if (this.hasTouchId.value === undefined) {
|
||||
if (RuntimeInfo.devMode) {
|
||||
this.hasTouchId.value = !!process.env.KEEWEB_EMULATE_HARDWARE_ENCRYPTION;
|
||||
} else {
|
||||
const { systemPreferences } = this.electron().remote;
|
||||
this.hasTouchId.value = !!systemPreferences.canPromptTouchID();
|
||||
}
|
||||
}
|
||||
return this.hasTouchId.value;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ class SettingsGeneralView extends View {
|
|||
titlebarStyle: AppSettingsModel.titlebarStyle,
|
||||
storageProviders,
|
||||
showReloadApp: Features.isStandalone,
|
||||
hasDeviceOwnerAuth: Launcher && Launcher.hasTouchId(),
|
||||
hasDeviceOwnerAuth: Features.isDesktop && Features.isMac,
|
||||
deviceOwnerAuth: AppSettingsModel.deviceOwnerAuth,
|
||||
deviceOwnerAuthTimeout: AppSettingsModel.deviceOwnerAuthTimeoutMinutes,
|
||||
disableOfflineStorage: AppSettingsModel.disableOfflineStorage
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"@babel/plugin-proposal-optional-chaining": "^7.12.13",
|
||||
"@babel/preset-env": "^7.12.13",
|
||||
"@fortawesome/fontawesome-free": "^5.15.2",
|
||||
"@keeweb/keeweb-native-modules": "https://github.com/keeweb/keeweb-native-modules/releases/download/0.8.1/keeweb-native-modules.tgz",
|
||||
"@keeweb/keeweb-native-modules": "https://github.com/keeweb/keeweb-native-modules/releases/download/0.8.2/keeweb-native-modules.tgz",
|
||||
"adm-zip": "^0.5.2",
|
||||
"argon2-browser": "1.15.3",
|
||||
"autoprefixer": "^10.2.4",
|
||||
|
|
Loading…
Reference in New Issue