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

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2024-04-28 16:35:19 +02:00
committed by GitHub
parent e9c84b8bfb
commit e716e24ec6

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")}>