fix(ui): removes useless verified checkbox on user create (#10252)
Removes the useless `_verified` checkbox from user creation. We can't make it functional from the admin UI, because if we respected the incoming `_verified` property from a user creation, then any user could auto-verify themselves via REST / GraphQL APIs. Fixes #10158
This commit is contained in:
@@ -44,7 +44,7 @@ export const Auth: React.FC<Props> = (props) => {
|
||||
const dispatchFields = useFormFields((reducer) => reducer[1])
|
||||
const modified = useFormModified()
|
||||
const { i18n, t } = useTranslation()
|
||||
const { docPermissions, isInitializing } = useDocumentInfo()
|
||||
const { docPermissions, isEditing, isInitializing } = useDocumentInfo()
|
||||
|
||||
const {
|
||||
config: {
|
||||
@@ -222,7 +222,7 @@ export const Auth: React.FC<Props> = (props) => {
|
||||
{canReadApiKey && <APIKey enabled={!!enableAPIKey?.value} readOnly={apiKeyReadOnly} />}
|
||||
</div>
|
||||
)}
|
||||
{verify && (
|
||||
{verify && isEditing && (
|
||||
<CheckboxField
|
||||
field={{
|
||||
name: '_verified',
|
||||
|
||||
Reference in New Issue
Block a user