sync: update from private repo (521808b)
Some checks failed
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync 2026-06-09 14:06:12 +00:00
parent 8041bc62cc
commit 4601e8d5c3

View File

@ -17,6 +17,7 @@ export function AuthForm({ config, onChange }: SectionFormProps) {
const providers = auth.providers ?? {};
const google = providers.google ?? {};
const gitea = providers.gitea ?? {};
const local = auth.local ?? {};
return (
<div className="space-y-5">
@ -33,11 +34,12 @@ export function AuthForm({ config, onChange }: SectionFormProps) {
onChange={e => onChange('auth.primaryProvider', e.target.value)}
className="w-full h-8 px-2 text-[13px] border border-hairline rounded-md bg-canvas focus:ring-2 focus:ring-accent-ring focus:border-accent outline-none transition-shadow"
>
<option value=""></option>
<option value=""></option>
<option value="google">google </option>
<option value="gitea">gitea </option>
<option value="local">local </option>
</select>
<HelpText></HelpText>
<HelpText>OAuth + </HelpText>
</div>
<div>
@ -73,6 +75,27 @@ export function AuthForm({ config, onChange }: SectionFormProps) {
<HelpText></HelpText>
</div>
<h3 className="text-sm font-medium text-slate-600 mt-4 pt-3 border-t border-slate-200">email + password</h3>
<div>
<label className="flex items-center gap-2 text-sm text-slate-700">
<input type="checkbox" checked={local.enabled === true}
onChange={e => onChange('auth.local.enabled', e.target.checked)} className="rounded" />
</label>
<HelpText> IdP email/password OAuth <code>primary_provider: local</code> local </HelpText>
</div>
<div>
<label className="flex items-center gap-2 text-sm text-slate-700">
<input type="checkbox" checked={local.allowSignup === true}
onChange={e => onChange('auth.local.allowSignup', e.target.checked)} className="rounded" />
</label>
<HelpText> <strong></strong>admin </HelpText>
</div>
<HelpText>
admin<code>bootstrap_admin</code>UI admin <code>config.yaml</code> <code>auth.local.bootstrap_admin</code> <code>id='local'</code> seed no-auth <em></em>
</HelpText>
<h3 className="text-sm font-medium text-slate-600 mt-4 pt-3 border-t border-slate-200">Google OAuth</h3>
<div>
<FieldLabel>Client ID</FieldLabel>