mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Don't erase password confirm on registration error
Fixes: https://github.com/vector-im/riot-web/issues/11395 Problem here was that the form gets re-mounted but there wasn't a facility to preserve the password confirmation field. Since the form validates that the passwords are equal, if we mount with a password supplied we just copy it over.
This commit is contained in:
parent
bff2130b2d
commit
8a02e064bd
@ -76,7 +76,7 @@ export default createReactClass({
|
||||
email: this.props.defaultEmail || "",
|
||||
phoneNumber: this.props.defaultPhoneNumber || "",
|
||||
password: this.props.defaultPassword || "",
|
||||
passwordConfirm: "",
|
||||
passwordConfirm: this.props.defaultPassword || "",
|
||||
passwordComplexity: null,
|
||||
passwordSafe: false,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user