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

Login local errors for blank fields #2009

Merged
merged 5 commits into from
Jun 25, 2018
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jun 23, 2018

Generate local errors if blank {username,email,phone_number}{password} field

Fixes element-hq/element-web#5577

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
remove unused refs

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@@ -56,33 +57,64 @@ class PasswordLogin extends React.Component {
this.onPhoneCountryChanged = this.onPhoneCountryChanged.bind(this);
this.onPhoneNumberChanged = this.onPhoneNumberChanged.bind(this);
this.onPasswordChanged = this.onPasswordChanged.bind(this);
this.isLoginEmpty = this.isLoginEmpty.bind(this);
Copy link
Member

Choose a reason for hiding this comment

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

ftr, I don't think you need to bind this as you're not passing it in as a callback anywhere. Arguably it's clearer if we just always bind component methods though.

@lukebarnard1 lukebarnard1 merged commit e67e1e8 into develop Jun 25, 2018
@t3chguy t3chguy deleted the t3chguy/login_local_error branch May 25, 2020 18:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants