fix: restore login screen background from not showing up

This commit is contained in:
Kyle Mendell
2026-04-21 11:55:52 -05:00
parent 2f0338211d
commit 975d3c79c6
7 changed files with 93 additions and 76 deletions
+11 -3
View File
@@ -20,8 +20,16 @@
const oidService = new OidcService();
let { data }: PageProps = $props();
let { client, scope, callbackURL, nonce, codeChallenge, codeChallengeMethod, authorizeState, prompt } =
data;
let {
client,
scope,
callbackURL,
nonce,
codeChallenge,
codeChallengeMethod,
authorizeState,
prompt
} = data;
let isLoading = $state(false);
let success = $state(false);
@@ -71,7 +79,7 @@
if (!authorizationConfirmed) {
authorizationRequired = await oidService.isAuthorizationRequired(client!.id, scope);
// If prompt=consent, always show consent UI
if (hasPromptConsent) {
authorizationRequired = true;
@@ -70,10 +70,10 @@
const backgroundImagePromise =
backgroundImage === null
? appConfigService.deleteBackgroundImage()
: backgroundImage
? appConfigService.updateBackgroundImage(backgroundImage)
: Promise.resolve();
? appConfigService.deleteBackgroundImage()
: backgroundImage
? appConfigService.updateBackgroundImage(backgroundImage)
: Promise.resolve();
await Promise.all([
lightLogoPromise,
@@ -33,7 +33,7 @@
data-testid={`callback-url-${i + 1}`}
type="text"
inputmode="url"
autocomplete="url"
autocomplete="url"
bind:value={callbackURLs[i]}
/>
<Button
@@ -139,7 +139,11 @@
</Item.Media>
<Item.Content class="min-w-52">
<Item.Title class="text-xl font-semibold">{m.passkeys()}</Item.Title>
<Item.Description>{passkeys.length > 0 ? m.manage_this_users_passkeys() : m.user_has_no_passkeys_yet()}</Item.Description>
<Item.Description
>{passkeys.length > 0
? m.manage_this_users_passkeys()
: m.user_has_no_passkeys_yet()}</Item.Description
>
</Item.Content>
</Item.Root>
{#if passkeys.length > 0}