X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;h=cb6b9a0179c618ea26e79c42874e97b9d8e81fce;hb=1dbfa8939bc1a6ef759b47b94c452829c47e9aac;hp=a3b6a6398420a0b24e868406c7a66950202ea829;hpb=35a47d156c0d1b62567ffd4380141b31568d426c;p=osm%2FUI.git diff --git a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx index a3b6a6398..cb6b9a017 100644 --- a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx @@ -132,6 +132,10 @@ class UserManagementDashboard 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;