Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

require fingerprint to access recovery key

ammarahm-ede42f1d9406df
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index caa629f88..395129e37 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -769,7 +769,17 @@ const SettingsUserSection = () => {
{
name: 'Save Data Recovery Key',
func: async () => {
- eSendEvent(eOpenRecoveryKeyDialog);
+ if (BiometricService.isBiometryAvailable() === false) {
+ eSendEvent(eOpenRecoveryKeyDialog);
+ return;
+ }
+ let result = await BiometricService.validateUser(
+ "Verify it's you",
+ '',
+ );
+ if (result) {
+ eSendEvent(eOpenRecoveryKeyDialog);
+ }
},
desc:
'Recover your data using the recovery key if your password is lost.',