mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
Merge e66c5b13f8 into 8ed0bcf5ca
This commit is contained in:
commit
29a578c977
1 changed files with 2 additions and 10 deletions
|
|
@ -183,15 +183,7 @@ export default function AuthSection({ isEditMode, serverName }: AuthSectionProps
|
|||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<Label htmlFor="oauth_client_secret" className="text-sm font-medium">
|
||||
{localize('com_ui_client_secret')}{' '}
|
||||
{!isEditMode && (
|
||||
<>
|
||||
<span aria-hidden="true" className="text-text-secondary">
|
||||
*
|
||||
</span>
|
||||
<span className="sr-only">{localize('com_ui_field_required')}</span>
|
||||
</>
|
||||
)}
|
||||
{localize('com_ui_client_secret')}
|
||||
</Label>
|
||||
<SecretInput
|
||||
id="oauth_client_secret"
|
||||
|
|
@ -200,7 +192,7 @@ export default function AuthSection({ isEditMode, serverName }: AuthSectionProps
|
|||
aria-describedby={
|
||||
errors.auth?.oauth_client_secret ? 'oauth-client-secret-error' : undefined
|
||||
}
|
||||
{...register('auth.oauth_client_secret', { required: !isEditMode })}
|
||||
{...register('auth.oauth_client_secret')}
|
||||
className={cn(errors.auth?.oauth_client_secret && 'border-border-destructive')}
|
||||
/>
|
||||
{errors.auth?.oauth_client_secret && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue