Browse Source

minor fix

ashilkn 2 years ago
parent
commit
dd1bba1094

+ 1 - 1
lib/ui/account/delete_account_page.dart

@@ -143,7 +143,7 @@ class DeleteAccountPage extends StatelessWidget {
     DeleteChallengeResponse response,
   ) async {
     final hasAuthenticatedOrNoLocalAuth =
-        await LocalAuthenticationService.instance.requestAuthentication(
+        await LocalAuthenticationService.instance.requestLocalAuthentication(
       context,
       "Please authenticate to initiate account deletion",
     );

+ 6 - 3
lib/ui/settings/account_section_widget.dart

@@ -37,7 +37,8 @@ class AccountSectionWidgetState extends State<AccountSectionWidget> {
           behavior: HitTestBehavior.translucent,
           onTap: () async {
             final hasAuthenticatedOrNoLocalAuth =
-                await LocalAuthenticationService.instance.requestAuthentication(
+                await LocalAuthenticationService.instance
+                    .requestLocalAuthentication(
               context,
               "Please authenticate to view your recovery key",
             );
@@ -70,7 +71,8 @@ class AccountSectionWidgetState extends State<AccountSectionWidget> {
           behavior: HitTestBehavior.translucent,
           onTap: () async {
             final hasAuthenticatedOrNoLocalAuth =
-                await LocalAuthenticationService.instance.requestAuthentication(
+                await LocalAuthenticationService.instance
+                    .requestLocalAuthentication(
               context,
               "Please authenticate to change your email",
             );
@@ -95,7 +97,8 @@ class AccountSectionWidgetState extends State<AccountSectionWidget> {
           behavior: HitTestBehavior.translucent,
           onTap: () async {
             final hasAuthenticatedOrNoLocalAuth =
-                await LocalAuthenticationService.instance.requestAuthentication(
+                await LocalAuthenticationService.instance
+                    .requestLocalAuthentication(
               context,
               "Please authenticate to change your password",
             );