projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Close button on view user in user management dashboard
[osm/UI.git]
/
skyquake
/
plugins
/
user_management
/
src
/
userProfile
/
userProfile.jsx
diff --git
a/skyquake/plugins/user_management/src/userProfile/userProfile.jsx
b/skyquake/plugins/user_management/src/userProfile/userProfile.jsx
index
a786858
..
a3fbced
100644
(file)
--- 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) {
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;
if(oldOne == newOne) {
self.props.actions.showNotification('Your new password must not match your old one');
return false;