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

add control password creating new member - #57

Open
andreaubbiali wants to merge 2 commits into
sorintlab:masterfrom
2h3ph3rd:password
Open

add control password creating new member#57
andreaubbiali wants to merge 2 commits into
sorintlab:masterfrom
2h3ph3rd:password

Conversation

@andreaubbiali

Copy link
Copy Markdown
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

sgotti commented Nov 10, 2018

Copy link
Copy Markdown
Member

@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"

Comment thread web/src/app/containers/EditMember.js Outdated
if (curMember.password !== curMember.repeatPassword) disabled = true
}

if (type === 'new') {

Copy link
Copy Markdown
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