mirror of https://github.com/vector-im/riot-web
Check to make sure passwords aren't blank
parent
ca593b8544
commit
3555f35737
|
@ -35,6 +35,11 @@ module.exports = React.createClass({
|
|||
state: this.Phases.Error,
|
||||
errorString: "Passwords don't match"
|
||||
});
|
||||
} else if (new_password == '' || old_password == '') {
|
||||
this.setState({
|
||||
state: this.Phases.Error,
|
||||
errorString: "Passwords can't be empty"
|
||||
});
|
||||
} else {
|
||||
this.changePassword(old_password, new_password);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue