mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 18:29:03 +00:00
Check to make sure passwords aren't blank
This commit is contained in:
@@ -35,6 +35,11 @@ module.exports = React.createClass({
|
|||||||
state: this.Phases.Error,
|
state: this.Phases.Error,
|
||||||
errorString: "Passwords don't match"
|
errorString: "Passwords don't match"
|
||||||
});
|
});
|
||||||
|
} else if (new_password == '' || old_password == '') {
|
||||||
|
this.setState({
|
||||||
|
state: this.Phases.Error,
|
||||||
|
errorString: "Passwords can't be empty"
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.changePassword(old_password, new_password);
|
this.changePassword(old_password, new_password);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user