Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add EmailField component for login, registration and password recovery screens #7006

Merged
merged 12 commits into from
Oct 27, 2021

Conversation

psrpinto
Copy link
Contributor

@psrpinto psrpinto commented Oct 21, 2021

Adds an EmailField component for the login, registration and password recovery screens, similarly to the PassphraseField component. By adding an EmailField component we can remove duplication across those screens, namely in what concerns validation.

This comes as a result of discussion in #6983, in which I suggested a plan of action to improve the forgot password screen.

There are no user-visible changes.
Type: [task]


This change is marked as an internal change (Task), so will not be included in the changelog.

Preview: https://6178308a54b2256d63beb936--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Setting allowEmpty to false had no effect since no `requires` rule is defined.
The email address is in fact optional, so allowEmpty should be set to true.
Since true is the default value, we simply ommit it.

Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
@psrpinto psrpinto requested a review from a team as a code owner October 21, 2021 16:56
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
@t3chguy t3chguy added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Oct 25, 2021
@t3chguy t3chguy requested review from t3chguy and removed request for a team October 25, 2021 10:53
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants