Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Log from TextInputWidge when password is wrong

ashilknc6d9b7d8751a
diff --git a/mobile/lib/ui/components/text_input_widget.dart b/mobile/lib/ui/components/text_input_widget.dart
index 132af62606..32ce462238 100644
--- a/mobile/lib/ui/components/text_input_widget.dart
+++ b/mobile/lib/ui/components/text_input_widget.dart
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
+import "package:logging/logging.dart";
import 'package:photos/models/execution_states.dart';
import 'package:photos/models/typedefs.dart';
import 'package:photos/theme/ente_theme.dart';
@@ -81,6 +82,7 @@ class TextInputWidget extends StatefulWidget {
}
class _TextInputWidgetState extends State<TextInputWidget> {
+ final _logger = Logger("TextInputWidget");
ExecutionState executionState = ExecutionState.idle;
late final TextEditingController _textController;
final _debouncer = Debouncer(const Duration(milliseconds: 300));
@@ -271,6 +273,7 @@ class _TextInputWidgetState extends State<TextInputWidget> {
_debouncer.cancelDebounce();
_exception = e as Exception;
if (e.toString().contains("Incorrect password")) {
+ _logger.warning("Incorrect password");
_surfaceWrongPasswordState();
}
if (!widget.popNavAfterSubmission) {