Fix Bug 69733 - [LDAP] No option to validate entered data in Password field when configuring LDAP
This commit is contained in:
parent
fb68cefffe
commit
9fcb1baed6
@ -39,7 +39,7 @@ const LdapFieldComponent = (props) => {
|
|||||||
name,
|
name,
|
||||||
onChange,
|
onChange,
|
||||||
isPassword,
|
isPassword,
|
||||||
...prop
|
...rest
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const onChangeFn = (e) => {
|
const onChangeFn = (e) => {
|
||||||
@ -54,12 +54,12 @@ const LdapFieldComponent = (props) => {
|
|||||||
onChange && onChange(e);
|
onChange && onChange(e);
|
||||||
};
|
};
|
||||||
|
|
||||||
const onFocus = (e) => {
|
// const onFocus = (e) => {
|
||||||
const name = e.target.name;
|
// const name = e.target.name;
|
||||||
if (errors[name]) {
|
// if (errors[name]) {
|
||||||
removeErrorField(name);
|
// removeErrorField(name);
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
|
|
||||||
const onBlur = (e) => {
|
const onBlur = (e) => {
|
||||||
if (e.target.value.trim() === "") {
|
if (e.target.value.trim() === "") {
|
||||||
@ -68,16 +68,16 @@ const LdapFieldComponent = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (isTextArea)
|
if (isTextArea)
|
||||||
return <Textarea name={name} onChange={onChangeFn} {...prop} />;
|
return <Textarea name={name} onChange={onChangeFn} {...rest} />;
|
||||||
|
|
||||||
if (isPassword)
|
if (isPassword)
|
||||||
return (
|
return (
|
||||||
<PasswordInput
|
<PasswordInput
|
||||||
name={name}
|
inputName={name}
|
||||||
onBlur={onBlur}
|
onBlur={onBlur}
|
||||||
onFocus={onFocus}
|
//onFocus={onFocus}
|
||||||
onChange={onChangeFn}
|
onChange={onChangeFn}
|
||||||
{...prop}
|
{...rest}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -85,9 +85,9 @@ const LdapFieldComponent = (props) => {
|
|||||||
<TextInput
|
<TextInput
|
||||||
name={name}
|
name={name}
|
||||||
onBlur={onBlur}
|
onBlur={onBlur}
|
||||||
onFocus={onFocus}
|
//onFocus={onFocus}
|
||||||
onChange={onChangeFn}
|
onChange={onChangeFn}
|
||||||
{...prop}
|
{...rest}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -160,6 +160,7 @@ const InputBlock = ({
|
|||||||
forwardedRef={forwardedRef}
|
forwardedRef={forwardedRef}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{!isDisabled && (
|
||||||
<div className="append">
|
<div className="append">
|
||||||
<StyledIconBlock
|
<StyledIconBlock
|
||||||
className={`input-block-icon ${iconButtonClassName}`}
|
className={`input-block-icon ${iconButtonClassName}`}
|
||||||
@ -177,6 +178,7 @@ const InputBlock = ({
|
|||||||
/>
|
/>
|
||||||
</StyledIconBlock>
|
</StyledIconBlock>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</StyledInputGroup>
|
</StyledInputGroup>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user