web/flows: fix missing fallback for flow logo (cherry-pick #9487) (#9492)

web/flows: fix missing fallback for flow logo (#9487)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L <jens@goauthentik.io>
This commit is contained in:
gcp-cherry-pick-bot[bot]
2024-04-28 16:37:29 +02:00
committed by GitHub
parent 9d6816bbc8
commit e034f5e5dc

View File

@ -441,7 +441,10 @@ export class FlowExecutor extends Interface implements StageHost {
renderChallengeWrapper(): TemplateResult {
const logo = html`<div class="pf-c-login__main-header pf-c-brand ak-brand">
<img src="${first(this.brand?.brandingLogo, "")}" alt="authentik Logo" />
<img
src="${first(this.brand?.brandingLogo, globalAK()?.brand.brandingLogo, "")}"
alt="authentik Logo"
/>
</div>`;
if (!this.challenge) {
return html`${logo}<ak-empty-state ?loading=${true} header=${msg("Loading")}>