Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor: update logout confirmation logic to prevent accidental sign-out from other devices

AmanRajSinghMourya2ccd2635eddc
diff --git a/mobile/packages/accounts/lib/pages/password_entry_page.dart b/mobile/packages/accounts/lib/pages/password_entry_page.dart
index 4ca06f7cb2..30f87f7be1 100644
--- a/mobile/packages/accounts/lib/pages/password_entry_page.dart
+++ b/mobile/packages/accounts/lib/pages/password_entry_page.dart
@@ -458,12 +458,14 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
}
Future<bool> logOutFromOtherDevices(BuildContext context) async {
- bool logOutFromOther = true;
+ bool logOutFromOther = false;
await showBaseBottomSheet(
context,
headerSpacing: 20,
title: context.strings.signOutFromOtherDevices,
+ isDismissible: false,
+ enableDrag: false,
child: Builder(
builder: (bottomSheetContext) {
final colorScheme = getEnteColorScheme(bottomSheetContext);
@@ -478,7 +480,6 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
GradientButton(
text: context.strings.doNotSignOut,
onTap: () {
- logOutFromOther = false;
Navigator.of(bottomSheetContext).pop();
},
),