mirror of
https://github.com/ente-io/ente.git
synced 2025-08-14 02:07:33 +00:00
[mob][photos] added authentication to view passkeys
This commit is contained in:
committed by
Neeraj Gupta
parent
09da5ca550
commit
b9a2cea390
@@ -132,7 +132,16 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
|||||||
pressedColor: getEnteColorScheme(context).fillFaint,
|
pressedColor: getEnteColorScheme(context).fillFaint,
|
||||||
trailingIcon: Icons.chevron_right_outlined,
|
trailingIcon: Icons.chevron_right_outlined,
|
||||||
trailingIconIsMuted: true,
|
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,
|
sectionOptionSpacing,
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user