UI: Add HideInput component to internal exploits
This commit is contained in:
parent
9a0837656b
commit
a8cc0e6781
|
@ -18,7 +18,7 @@ export default function UiSchema(props) {
|
|||
credentials : {
|
||||
exploit_password_list: {
|
||||
items: {
|
||||
'ui:widget': HideInput
|
||||
'ui:widget': HideInput
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -112,6 +112,18 @@ export default function UiSchema(props) {
|
|||
aws_keys: {
|
||||
classNames: 'config-field-hidden'
|
||||
}
|
||||
},
|
||||
exploits: {
|
||||
exploit_lm_hash_list:{
|
||||
items: {
|
||||
'ui:widget': HideInput
|
||||
}
|
||||
},
|
||||
exploit_ntlm_hash_list: {
|
||||
items: {
|
||||
'ui:widget': HideInput
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -24,15 +24,15 @@ class HideInput extends React.PureComponent {
|
|||
render() {
|
||||
return (
|
||||
<div>
|
||||
<InputGroup className='mb-3'>
|
||||
<InputGroup className='mb-4'>
|
||||
<FormControl
|
||||
value={this.props.value || ''}
|
||||
type={this.state.hidden ? 'text' : 'password'}
|
||||
onChange={(event) => this.onChange(event)}
|
||||
/>
|
||||
<InputGroup.Append>
|
||||
<InputGroup.Text>
|
||||
<i onClick={this.toggleShow} className={this.state.hidden ? 'fas fa-eye-slash' : 'fas fa-eye'}></i>
|
||||
<InputGroup.Text onClick={this.toggleShow} >
|
||||
<i className={this.state.hidden ? 'fas fa-eye-slash' : 'fas fa-eye'}></i>
|
||||
</InputGroup.Text>
|
||||
</InputGroup.Append>
|
||||
</InputGroup>
|
||||
|
|
Loading…
Reference in New Issue