Skip to content

armgit / ente

Public Imported from GitHub
0

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

Handle wrong password text submissions

Neeraj Guptabab8e4beb344
diff --git a/mobile/apps/photos/lib/ui/components/text_input_widget.dart b/mobile/apps/photos/lib/ui/components/text_input_widget.dart
index 41cc8e7637..ec2db6e60c 100644
--- a/mobile/apps/photos/lib/ui/components/text_input_widget.dart
+++ b/mobile/apps/photos/lib/ui/components/text_input_widget.dart
@@ -288,6 +288,7 @@ class _TextInputWidgetState extends State<TextInputWidget> {
if (e.toString().contains("Incorrect password")) {
_logger.warning("Incorrect password");
_surfaceWrongPasswordState();
+ return;
}
if (!widget.popNavAfterSubmission) {
rethrow;
diff --git a/mobile/apps/photos/lib/ui/components/text_input_widget_v2.dart b/mobile/apps/photos/lib/ui/components/text_input_widget_v2.dart
index dc7e31836a..f56afd6e2d 100644
--- a/mobile/apps/photos/lib/ui/components/text_input_widget_v2.dart
+++ b/mobile/apps/photos/lib/ui/components/text_input_widget_v2.dart
@@ -544,6 +544,7 @@ class _TextInputWidgetV2State extends State<TextInputWidgetV2>
if (e.toString().contains('Incorrect password')) {
_logger.warning('Incorrect password');
_surfaceWrongPasswordState();
+ return;
}
if (!widget.popNavAfterSubmission) {
rethrow;