Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor: Enhance password verification page with contextual prompt for email

AmanRajSinghMourya7fd55bd46b49
diff --git a/mobile/packages/accounts/lib/pages/login_pwd_verification_page.dart b/mobile/packages/accounts/lib/pages/login_pwd_verification_page.dart
index 91fed61241..d0aaee7784 100644
--- a/mobile/packages/accounts/lib/pages/login_pwd_verification_page.dart
+++ b/mobile/packages/accounts/lib/pages/login_pwd_verification_page.dart
@@ -228,6 +228,23 @@ class _LoginPasswordVerificationPageState
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
+ const SizedBox(height: 24),
+ Text.rich(
+ TextSpan(
+ text: "${context.strings.enterThePasswordFor} ",
+ style: textTheme.body.copyWith(
+ color: colorScheme.textMuted,
+ ),
+ children: [
+ TextSpan(
+ text: email,
+ style: textTheme.body.copyWith(
+ color: colorScheme.primary700,
+ ),
+ ),
+ ],
+ ),
+ ),
const SizedBox(height: 24),
Text(
context.strings.password,
diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
index 87e5f047f8..5b76088f50 100644
--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb
+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
@@ -270,6 +270,10 @@
"@password": {
"description": "Password field label"
},
+ "enterThePasswordFor": "Enter the password for",
+ "@enterThePasswordFor": {
+ "description": "Text shown before email on login password verification page"
+ },
"confirmPassword": "Confirm password",
"@confirmPassword": {
"description": "Confirm password field label"