Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

add control password creating new member #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add control password creating new member #57

wants to merge 2 commits into from

Conversation

andreaubbiali
Copy link
Contributor

When you try to create a new member, when you have to put the password there is a control that make sure it isn't too short but when you write in the box "repeat password" there isn't the control if the two password are the same. this commit add it.

@sgotti
Copy link
Member

sgotti commented Nov 10, 2018

@andreaubbiali Please add the description also in the git commit description not only in the PR description (so your PR will already have a description).

Looking at the code I'll also rephrase this to just "disable submit button when the two passwords don't match also when creating a new member"

@@ -375,6 +375,10 @@ class EditMember extends React.Component {
if (curMember.password !== curMember.repeatPassword) disabled = true
}

if (type === 'new') {
Copy link
Member

Choose a reason for hiding this comment

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

Just "or" with the above statement since the code is the same

sgotti and others added 2 commits November 10, 2018 16:59
Disable submit button when the two passwords don't match also when creating a new member
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.

2 participants