fix: privacy in sign up

- allow no mail registration after dismissing marning banner
- defaultly hide password characters

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
TheOneWithTheBraid 2022-05-21 12:08:52 +02:00
parent aa4b19a828
commit 487b3da979
4 changed files with 12 additions and 9 deletions

View File

@ -896,7 +896,7 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"enterAnEmailAddress": "Gib eine E-Mail-Adresse ein", "enterAnEmailAddress": "E-Mail-Adresse (nicht erforderlich)",
"@enterAnEmailAddress": { "@enterAnEmailAddress": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}

View File

@ -955,11 +955,13 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"enterAnEmailAddress": "Enter an email address", "enterAnEmailAddress": "Email address (not mandatory)",
"@enterAnEmailAddress": { "@enterAnEmailAddress": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"emailContinueAnyway": "Continue anyway",
"emailEmptyWarning": "Warning: Even though adding a mail address leaks sensitive personal data, you have no way to recover your password without it.",
"enterASpacepName": "Enter a space name", "enterASpacepName": "Enter a space name",
"@enterASpacepName": {}, "@enterASpacepName": {},
"enterAUsername": "Enter a username", "enterAUsername": "Enter a username",

View File

@ -910,7 +910,7 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"enterAnEmailAddress": "Saisissez une adresse de courriel", "enterAnEmailAddress": "Adresse de courriel (ne pas mandatoire)",
"@enterAnEmailAddress": { "@enterAnEmailAddress": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}

View File

@ -88,12 +88,13 @@ class SignupPageView extends StatelessWidget {
controller.loading ? null : [AutofillHints.username], controller.loading ? null : [AutofillHints.username],
validator: controller.emailTextFieldValidator, validator: controller.emailTextFieldValidator,
decoration: FluffyThemes.loginTextFieldDecoration( decoration: FluffyThemes.loginTextFieldDecoration(
prefixIcon: const Icon( prefixIcon: const Icon(
Icons.mail_outlined, Icons.mail_outlined,
color: Colors.black, color: Colors.black,
), ),
hintText: L10n.of(context)!.enterAnEmailAddress, hintText: L10n.of(context)!.enterAnEmailAddress,
errorText: controller.error), errorText: controller.error,
),
), ),
), ),
Hero( Hero(