Remove older password length check

Now that we have a fancier password complexity check, remove the older minimum
length to avoid the feeling of two password style guides fighting each other.
This commit is contained in:
J. Ryan Stinnett 2019-04-23 15:05:03 +01:00
parent 4f41161a47
commit a20d23daf3
3 changed files with 0 additions and 15 deletions

View file

@ -48,7 +48,6 @@ module.exports = React.createClass({
defaultPhoneNumber: PropTypes.string,
defaultUsername: PropTypes.string,
defaultPassword: PropTypes.string,
minPasswordLength: PropTypes.number,
onRegisterClick: PropTypes.func.isRequired, // onRegisterClick(Object) => ?Promise
onEditServerDetailsClick: PropTypes.func,
flows: PropTypes.arrayOf(PropTypes.object).isRequired,
@ -61,7 +60,6 @@ module.exports = React.createClass({
getDefaultProps: function() {
return {
minPasswordLength: 6,
onValidationChange: console.error,
};
},
@ -256,15 +254,6 @@ module.exports = React.createClass({
test: ({ value, allowEmpty }) => allowEmpty || !!value,
invalid: () => _t("Enter password"),
},
{
key: "minLength",
test: function({ value }) {
return !value || value.length >= this.props.minPasswordLength;
},
invalid: function() {
return _t("Too short (min %(length)s)", { length: this.props.minPasswordLength });
},
},
{
key: "complexity",
test: async function({ value }) {