Skip to content

Commit

Permalink
web/flows: fix missing fallback for flow logo (#9487)
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu authored Apr 28, 2024
1 parent e9c84b8 commit e716e24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/flow/FlowExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")}>
Expand Down

0 comments on commit e716e24

Please sign in to comment.