diff --git a/awx/ui_next/src/screens/User/shared/UserForm.jsx b/awx/ui_next/src/screens/User/shared/UserForm.jsx index 7d65e7369f..0449af1808 100644 --- a/awx/ui_next/src/screens/User/shared/UserForm.jsx +++ b/awx/ui_next/src/screens/User/shared/UserForm.jsx @@ -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) && ( <> diff --git a/awx/ui_next/src/types.js b/awx/ui_next/src/types.js index 1f3148ab10..760ecf4ed2 100644 --- a/awx/ui_next/src/types.js +++ b/awx/ui_next/src/types.js @@ -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,