mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
only allow to add user if mail is set - backend throws error if mail is not set
This commit is contained in:
@@ -73,7 +73,8 @@ class UserForm extends React.Component<Props, State> {
|
|||||||
this.state.passwordConfirmationError ||
|
this.state.passwordConfirmationError ||
|
||||||
this.state.displayNameValidationError ||
|
this.state.displayNameValidationError ||
|
||||||
this.isFalsy(user.name) ||
|
this.isFalsy(user.name) ||
|
||||||
this.isFalsy(user.displayName)
|
this.isFalsy(user.displayName) ||
|
||||||
|
this.isFalsy(user.mail)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user