Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] added authentication to view passkeys

Aman Raj Singh Mouryab9a2cea390f7
diff --git a/mobile/lib/ui/settings/security_section_widget.dart b/mobile/lib/ui/settings/security_section_widget.dart
index a2ffe4f1ff..f3dec26867 100644
--- a/mobile/lib/ui/settings/security_section_widget.dart
+++ b/mobile/lib/ui/settings/security_section_widget.dart
@@ -132,7 +132,16 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
pressedColor: getEnteColorScheme(context).fillFaint,
trailingIcon: Icons.chevron_right_outlined,
trailingIconIsMuted: true,
- onTap: () async => await onPasskeyClick(context),
+ onTap: () async {
+ final hasAuthenticated = await LocalAuthenticationService.instance
+ .requestLocalAuthentication(
+ context,
+ "Please authenticate to view your passkey",
+ );
+ if (hasAuthenticated) {
+ await onPasskeyClick(context);
+ }
+ },
),
sectionOptionSpacing,
],