mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-31 01:55:41 +01:00
Simplify user check in Authentication Required for newer installs
This commit is contained in:
@@ -104,7 +104,7 @@ function AuthenticationRequiredModalContent(props) {
|
||||
type={inputTypes.TEXT}
|
||||
name="username"
|
||||
onChange={onInputChange}
|
||||
helpTextWarning={username === undefined || username.value === '' ? translate('AuthenticationRequiredUsernameHelpTextWarning') : undefined}
|
||||
helpTextWarning={username?.value ? undefined : translate('AuthenticationRequiredUsernameHelpTextWarning')}
|
||||
{...username}
|
||||
/>
|
||||
</FormGroup>
|
||||
@@ -116,7 +116,7 @@ function AuthenticationRequiredModalContent(props) {
|
||||
type={inputTypes.PASSWORD}
|
||||
name="password"
|
||||
onChange={onInputChange}
|
||||
helpTextWarning={password === undefined || password.value === '' ? translate('AuthenticationRequiredPasswordHelpTextWarning') : undefined}
|
||||
helpTextWarning={password?.value ? undefined : translate('AuthenticationRequiredPasswordHelpTextWarning')}
|
||||
{...password}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
Reference in New Issue
Block a user