From 222db659f4e73770f7f99821a264a66bfdab95fc Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Wed, 1 Nov 2023 15:11:50 +0100 Subject: [PATCH] Add 'Email Verified' checkbox if user profile is enabled (#24463) --- js/apps/admin-ui/src/user/UserForm.tsx | 39 ++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/js/apps/admin-ui/src/user/UserForm.tsx b/js/apps/admin-ui/src/user/UserForm.tsx index ec53ac1437..5fab8b87dd 100644 --- a/js/apps/admin-ui/src/user/UserForm.tsx +++ b/js/apps/admin-ui/src/user/UserForm.tsx @@ -187,11 +187,40 @@ export const UserForm = ({ )} {userProfileMetadata ? ( - + <> + + } + > + ( + field.onChange(value)} + isChecked={field.value} + label={t("yes")} + labelOff={t("no")} + /> + )} + /> + + + ) : ( <> {!realm.registrationEmailAsUsername && (