mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
Show an error when biometrics is disabeld in desktop app or not supported
This commit is contained in:
parent
c4185fe6ee
commit
95d475a9d3
@ -1417,6 +1417,18 @@
|
|||||||
"nativeMessagingInvalidEncryptionTitle": {
|
"nativeMessagingInvalidEncryptionTitle": {
|
||||||
"message": "Desktop communication interupted"
|
"message": "Desktop communication interupted"
|
||||||
},
|
},
|
||||||
|
"biometricsNotEnabledTitle": {
|
||||||
|
"message": "Biometrics not enabled"
|
||||||
|
},
|
||||||
|
"biometricsNotEnabledDesc": {
|
||||||
|
"message": "Browser biometric requires desktop biometric to be enabled in the settings first."
|
||||||
|
},
|
||||||
|
"biometricsNotSupportedTitle": {
|
||||||
|
"message": "Biometrics not supported"
|
||||||
|
},
|
||||||
|
"biometricsNotSupportedDesc": {
|
||||||
|
"message": "Browser biometric is not supported on this device."
|
||||||
|
},
|
||||||
"personalOwnershipSubmitError": {
|
"personalOwnershipSubmitError": {
|
||||||
"message": "Due to an Enterprise Policy, you are restricted from saving items to your personal vault. Change the Ownership option to an organization and choose from available Collections."
|
"message": "Due to an Enterprise Policy, you are restricted from saving items to your personal vault. Change the Ownership option to an organization and choose from available Collections."
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,24 @@ export class NativeMessagingBackground {
|
|||||||
case 'biometricUnlock':
|
case 'biometricUnlock':
|
||||||
await this.storageService.remove(ConstantsService.biometricAwaitingAcceptance);
|
await this.storageService.remove(ConstantsService.biometricAwaitingAcceptance);
|
||||||
|
|
||||||
|
if (message.response === 'not enabled') {
|
||||||
|
this.messagingService.send('showDialog', {
|
||||||
|
text: this.i18nService.t('biometricsNotEnabledDesc'),
|
||||||
|
title: this.i18nService.t('biometricsNotEnabledTitle'),
|
||||||
|
confirmText: this.i18nService.t('ok'),
|
||||||
|
type: 'error',
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
} else if (message.response === 'not supported') {
|
||||||
|
this.messagingService.send('showDialog', {
|
||||||
|
text: this.i18nService.t('biometricsNotSupportedDesc'),
|
||||||
|
title: this.i18nService.t('biometricsNotSupportedTitle'),
|
||||||
|
confirmText: this.i18nService.t('ok'),
|
||||||
|
type: 'error',
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
const enabled = await this.storageService.get(ConstantsService.biometricUnlockKey);
|
const enabled = await this.storageService.get(ConstantsService.biometricUnlockKey);
|
||||||
if (enabled === null || enabled === false) {
|
if (enabled === null || enabled === false) {
|
||||||
if (message.response === 'unlocked') {
|
if (message.response === 'unlocked') {
|
||||||
|
Loading…
Reference in New Issue
Block a user