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