mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-20 06:22:10 +01:00
fix user form validation rule
This commit is contained in:
@@ -120,7 +120,7 @@ class UserForm extends React.Component<Props, State> {
|
||||
this.state.displayNameValidationError ||
|
||||
this.state.nameValidationError ||
|
||||
!user.displayName ||
|
||||
(!user.external && !user.password)
|
||||
(this.props.user?.external && !user.external && !user.password)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user