From 84d8df2b052f54b40f72cde34f2f8fdab9e350ae Mon Sep 17 00:00:00 2001 From: mfrances Date: Mon, 22 Feb 2021 14:48:03 -0500 Subject: [PATCH] regex and number fields to provide simple client side validation --- .../ldap/LdapSettingsConnection.tsx | 2 +- .../ldap/LdapSettingsSearching.tsx | 16 ++++++++++++++-- .../ldap/LdapSettingsSynchronization.tsx | 6 +++--- src/user-federation/messages.json | 1 + 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/user-federation/ldap/LdapSettingsConnection.tsx b/src/user-federation/ldap/LdapSettingsConnection.tsx index b7c9098108..1916ccb054 100644 --- a/src/user-federation/ldap/LdapSettingsConnection.tsx +++ b/src/user-federation/ldap/LdapSettingsConnection.tsx @@ -193,7 +193,7 @@ export const LdapSettingsConnection = ({ fieldId="kc-console-connection-timeout" > + {form.errors.config && + form.errors.config.customUserSearchFilter && + form.errors.config.customUserSearchFilter[0] && ( +
+ {form.errors.config.customUserSearchFilter[0].message} +
+ )}