π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Require device auth before accessing app lock settings
Prateek Sunalda5155d9eab8
diff --git a/mobile/apps/auth/lib/ui/settings/security_section_widget.dart b/mobile/apps/auth/lib/ui/settings/security_section_widget.dartindex 9d258042f8..5969967688 100644--- a/mobile/apps/auth/lib/ui/settings/security_section_widget.dart+++ b/mobile/apps/auth/lib/ui/settings/security_section_widget.dart@@ -20,7 +20,6 @@ import 'package:ente_auth/utils/dialog_util.dart';import 'package:ente_auth/utils/navigation_util.dart';import 'package:ente_auth/utils/toast_util.dart';import 'package:ente_crypto_dart/ente_crypto_dart.dart';-import 'package:ente_lock_screen/auth_util.dart';import 'package:ente_lock_screen/local_authentication_service.dart';import 'package:ente_lock_screen/lock_screen_settings.dart';import 'package:ente_lock_screen/ui/lock_screen_options.dart';@@ -163,21 +162,12 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {return;}}- if (await LockScreenSettings.instance.shouldShowLockScreen()) {- final bool result = await requestAuthentication(- context,- context.l10n.authToChangeLockscreenSetting,- );- if (result) {- await Navigator.of(context).push(- MaterialPageRoute(- builder: (BuildContext context) {- return const LockScreenOptions();- },- ),- );- }- } else {+ final hasAuthenticated = await LocalAuthenticationService.instance+ .requestLocalAuthentication(+ context,+ context.l10n.authToChangeLockscreenSetting,+ );+ if (hasAuthenticated) {await Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context) {