X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2FuserProfile%2FuserProfile.jsx;h=a3fbced0a4d1dd7f1b7ea63413133f35c856414c;hb=c939d026fe2116d17370970e9359e93a440a5a5f;hp=a7868583c9553f9a1de6ae42842ccdc17b3c16ee;hpb=56e55f5efc98e32a1afb3d99d07e9e5b0847a258;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 a7868583c..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;