Skip to content

Commit 14b95b5

Browse files
rickypratpolonel
authored andcommitted
Update minimum password validation
Change password validation from minimum 2 characters to 4 characters (following install.hbs and CreateAccountModal.jsx)
1 parent c4c3b44 commit 14b95b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/containers/Modals/EditAccountModal.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ class EditAccountModal extends React.Component {
123123
groups: !this.isAgentRole && this.groupSelect ? this.groupSelect.getSelected() : undefined,
124124
teams: this.isAgentRole && this.teamsSelect ? this.teamsSelect.getSelected() : undefined,
125125
role: this.selectedRole,
126-
password: this.password.length > 1 ? this.password : undefined,
127-
passwordConfirm: this.confirmPassword.length > 1 ? this.confirmPassword : undefined
126+
password: this.password.length > 3 ? this.password : undefined,
127+
passwordConfirm: this.confirmPassword.length > 3 ? this.confirmPassword : undefined
128128
}
129129

130130
this.props.saveEditAccount(data)

0 commit comments

Comments
 (0)