diff --git a/scm-ui/src/users/components/UserForm.js b/scm-ui/src/users/components/UserForm.js index 2b8aa7b1e8..0f2407f192 100644 --- a/scm-ui/src/users/components/UserForm.js +++ b/scm-ui/src/users/components/UserForm.js @@ -38,7 +38,7 @@ class UserForm extends React.Component { mail: "", password: "", admin: false, - active: false, + active: true, _links: {} }, mailValidationError: false, @@ -73,7 +73,8 @@ class UserForm extends React.Component { this.state.passwordConfirmationError || this.state.displayNameValidationError || this.isFalsy(user.name) || - this.isFalsy(user.displayName) + this.isFalsy(user.displayName) || + this.isFalsy(user.mail) ); };