mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 02:55:14 +00:00
fix: don't use TOFU for logout callback URLs (#588)
This commit is contained in:
committed by
GitHub
parent
20d3f780a2
commit
256f74d0a3
@@ -9,11 +9,13 @@
|
||||
|
||||
let {
|
||||
label,
|
||||
description,
|
||||
callbackURLs = $bindable(),
|
||||
error = $bindable(null),
|
||||
...restProps
|
||||
}: HTMLAttributes<HTMLDivElement> & {
|
||||
label: string;
|
||||
description: string;
|
||||
callbackURLs: string[];
|
||||
error?: string | null;
|
||||
children?: Snippet;
|
||||
@@ -21,7 +23,7 @@
|
||||
</script>
|
||||
|
||||
<div {...restProps}>
|
||||
<FormInput {label} description={m.callback_url_description()}>
|
||||
<FormInput {label} {description}>
|
||||
<div class="flex flex-col gap-y-2">
|
||||
{#each callbackURLs as _, i}
|
||||
<div class="flex gap-x-2">
|
||||
|
||||
@@ -84,12 +84,14 @@
|
||||
<div></div>
|
||||
<OidcCallbackUrlInput
|
||||
label={m.callback_urls()}
|
||||
description={m.callback_url_description()}
|
||||
class="w-full"
|
||||
bind:callbackURLs={$inputs.callbackURLs.value}
|
||||
bind:error={$inputs.callbackURLs.error}
|
||||
/>
|
||||
<OidcCallbackUrlInput
|
||||
label={m.logout_callback_urls()}
|
||||
description={m.logout_callback_url_description()}
|
||||
class="w-full"
|
||||
bind:callbackURLs={$inputs.logoutCallbackURLs.value}
|
||||
bind:error={$inputs.logoutCallbackURLs.error}
|
||||
|
||||
Reference in New Issue
Block a user