mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
Wait until password confirm is non-empty
If password confirm is empty on blur, there's no reason to try validating it. The user may just be tabbing through fields.
This commit is contained in:
parent
27abd7d507
commit
acae2e9976
@ -206,10 +206,14 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case FIELD_PASSWORD_CONFIRM:
|
case FIELD_PASSWORD_CONFIRM:
|
||||||
this.markFieldValid(
|
if (allowEmpty && pwd2 === "") {
|
||||||
fieldID, pwd1 == pwd2,
|
this.markFieldValid(fieldID, true);
|
||||||
"RegistrationForm.ERR_PASSWORD_MISMATCH",
|
} else {
|
||||||
);
|
this.markFieldValid(
|
||||||
|
fieldID, pwd1 == pwd2,
|
||||||
|
"RegistrationForm.ERR_PASSWORD_MISMATCH",
|
||||||
|
);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user