Skip to content

Commit

Permalink
web/flows: fix missing fallback for flow logo
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
  • Loading branch information
BeryJu committed Apr 27, 2024
1 parent e9c84b8 commit dfb8738
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 dfb8738

Please sign in to comment.