disabled touch id check

This commit is contained in:
antelle 2021-02-14 11:36:20 +01:00
parent fdc9ac95d2
commit 59616bd8af
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
3 changed files with 2 additions and 13 deletions

View File

@ -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;
}
};

View File

@ -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

View File

@ -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",