X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2FuserProfile%2FuserProfile.jsx;h=a3fbced0a4d1dd7f1b7ea63413133f35c856414c;hb=c33cde7c8824d79e9825698fe957c24dfa1fe798;hp=d7cb6005a4bec8f33ee862c27c3daf5e4c78e472;hpb=2ff1ddba3d20163b110f27abfe7875d6edf2255c;p=osm%2FUI.git diff --git a/skyquake/plugins/user_management/src/userProfile/userProfile.jsx b/skyquake/plugins/user_management/src/userProfile/userProfile.jsx index d7cb6005a..a3fbced0a 100644 --- a/skyquake/plugins/user_management/src/userProfile/userProfile.jsx +++ b/skyquake/plugins/user_management/src/userProfile/userProfile.jsx @@ -126,6 +126,10 @@ class UserProfileDashboard extends React.Component { let newOne = state['new-password']; let confirmOne = state['confirm-password']; if(true) { + if(!oldOne || !newOne) { + self.props.actions.showNotification('Please fill in all fields.'); + return false; + } if(oldOne == newOne) { self.props.actions.showNotification('Your new password must not match your old one'); return false; @@ -237,7 +241,9 @@ class UserProfileDashboard extends React.Component { {passwordSectionHTML} - {formButtonsHTML} +
+ {formButtonsHTML} +