From 3555f3573786cb035f74b72d210b0bac50708904 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 16 Jul 2015 10:43:16 +0100 Subject: [PATCH] Check to make sure passwords aren't blank --- skins/base/views/molecules/ChangePassword.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/skins/base/views/molecules/ChangePassword.js b/skins/base/views/molecules/ChangePassword.js index 98b2e71bc..969a43d8f 100644 --- a/skins/base/views/molecules/ChangePassword.js +++ b/skins/base/views/molecules/ChangePassword.js @@ -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); }