|
|
|
@ -81,52 +81,40 @@ function AuthenticationRequiredModalContent(props) {
|
|
|
|
|
/>
|
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
authenticationEnabled ?
|
|
|
|
|
<FormGroup>
|
|
|
|
|
<FormLabel>Authentication Required</FormLabel>
|
|
|
|
|
|
|
|
|
|
<FormInputGroup
|
|
|
|
|
type={inputTypes.SELECT}
|
|
|
|
|
name="authenticationRequired"
|
|
|
|
|
values={authenticationRequiredOptions}
|
|
|
|
|
helpText="Change which requests authentication is required for. Do not change unless you understand the risks."
|
|
|
|
|
onChange={onInputChange}
|
|
|
|
|
{...authenticationRequired}
|
|
|
|
|
/>
|
|
|
|
|
</FormGroup> :
|
|
|
|
|
null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
authenticationEnabled ?
|
|
|
|
|
<FormGroup>
|
|
|
|
|
<FormLabel>Username</FormLabel>
|
|
|
|
|
|
|
|
|
|
<FormInputGroup
|
|
|
|
|
type={inputTypes.TEXT}
|
|
|
|
|
name="username"
|
|
|
|
|
onChange={onInputChange}
|
|
|
|
|
{...username}
|
|
|
|
|
/>
|
|
|
|
|
</FormGroup> :
|
|
|
|
|
null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
authenticationEnabled ?
|
|
|
|
|
<FormGroup>
|
|
|
|
|
<FormLabel>Password</FormLabel>
|
|
|
|
|
|
|
|
|
|
<FormInputGroup
|
|
|
|
|
type={inputTypes.PASSWORD}
|
|
|
|
|
name="password"
|
|
|
|
|
onChange={onInputChange}
|
|
|
|
|
{...password}
|
|
|
|
|
/>
|
|
|
|
|
</FormGroup> :
|
|
|
|
|
null
|
|
|
|
|
}
|
|
|
|
|
<FormGroup>
|
|
|
|
|
<FormLabel>Authentication Required</FormLabel>
|
|
|
|
|
|
|
|
|
|
<FormInputGroup
|
|
|
|
|
type={inputTypes.SELECT}
|
|
|
|
|
name="authenticationRequired"
|
|
|
|
|
values={authenticationRequiredOptions}
|
|
|
|
|
helpText="Change which requests authentication is required for. Do not change unless you understand the risks."
|
|
|
|
|
onChange={onInputChange}
|
|
|
|
|
{...authenticationRequired}
|
|
|
|
|
/>
|
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
|
|
<FormGroup>
|
|
|
|
|
<FormLabel>Username</FormLabel>
|
|
|
|
|
|
|
|
|
|
<FormInputGroup
|
|
|
|
|
type={inputTypes.TEXT}
|
|
|
|
|
name="username"
|
|
|
|
|
onChange={onInputChange}
|
|
|
|
|
{...username}
|
|
|
|
|
/>
|
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
|
|
<FormGroup>
|
|
|
|
|
<FormLabel>Password</FormLabel>
|
|
|
|
|
|
|
|
|
|
<FormInputGroup
|
|
|
|
|
type={inputTypes.PASSWORD}
|
|
|
|
|
name="password"
|
|
|
|
|
onChange={onInputChange}
|
|
|
|
|
{...password}
|
|
|
|
|
/>
|
|
|
|
|
</FormGroup>
|
|
|
|
|
</div> :
|
|
|
|
|
null
|
|
|
|
|
}
|
|
|
|
|