mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Make email not required for a user in the UI.
It's already not required in the API.
This commit is contained in:
parent
0f6d2c36a0
commit
fb07be36b5
@ -11,7 +11,7 @@ import FormField, {
|
||||
FormSubmitError,
|
||||
} from '../../../components/FormField';
|
||||
import OrganizationLookup from '../../../components/Lookup/OrganizationLookup';
|
||||
import { required, requiredEmail } from '../../../util/validators';
|
||||
import { required } from '../../../util/validators';
|
||||
import { FormColumnLayout } from '../../../components/FormLayout';
|
||||
|
||||
function UserFormFields({ user, i18n }) {
|
||||
@ -76,8 +76,7 @@ function UserFormFields({ user, i18n }) {
|
||||
id="user-email"
|
||||
label={i18n._(t`Email`)}
|
||||
name="email"
|
||||
validate={requiredEmail(i18n)}
|
||||
isRequired
|
||||
type="text"
|
||||
/>
|
||||
{!ldapUser && !(socialAuthUser && externalAccount) && (
|
||||
<>
|
||||
|
||||
@ -258,7 +258,7 @@ export const User = shape({
|
||||
username: string,
|
||||
first_name: string,
|
||||
last_name: string,
|
||||
email: string.isRequired,
|
||||
email: string,
|
||||
is_superuser: bool,
|
||||
is_system_auditor: bool,
|
||||
ldap_dn: string,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user