mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 00:09:37 +02:00
Simplify user check in Authentication Required for newer installs
This commit is contained in:
parent
7f172dcfd1
commit
756384d94a
@ -104,7 +104,7 @@ function AuthenticationRequiredModalContent(props) {
|
|||||||
type={inputTypes.TEXT}
|
type={inputTypes.TEXT}
|
||||||
name="username"
|
name="username"
|
||||||
onChange={onInputChange}
|
onChange={onInputChange}
|
||||||
helpTextWarning={username === undefined || username.value === '' ? translate('AuthenticationRequiredUsernameHelpTextWarning') : undefined}
|
helpTextWarning={username?.value ? undefined : translate('AuthenticationRequiredUsernameHelpTextWarning')}
|
||||||
{...username}
|
{...username}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
@ -116,7 +116,7 @@ function AuthenticationRequiredModalContent(props) {
|
|||||||
type={inputTypes.PASSWORD}
|
type={inputTypes.PASSWORD}
|
||||||
name="password"
|
name="password"
|
||||||
onChange={onInputChange}
|
onChange={onInputChange}
|
||||||
helpTextWarning={password === undefined || password.value === '' ? translate('AuthenticationRequiredPasswordHelpTextWarning') : undefined}
|
helpTextWarning={password?.value ? undefined : translate('AuthenticationRequiredPasswordHelpTextWarning')}
|
||||||
{...password}
|
{...password}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user