providers/saml: add title attribute to autosubmit stage and render correctly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-05-14 00:08:14 +02:00
parent 8ba45a5f6a
commit ddd785898b
7 changed files with 875 additions and 1019 deletions

View File

@ -35,8 +35,12 @@ export class AutosubmitStage extends BaseStage<
if (!this.challenge) {
return html`<ak-empty-state ?loading="${true}" header=${t`Loading`}> </ak-empty-state>`;
}
let title = this.challenge.flowInfo?.title;
if (this.challenge.title && this.challenge.title !== "") {
title = this.challenge.title;
}
return html`<header class="pf-c-login__main-header">
<h1 class="pf-c-title pf-m-3xl">${this.challenge.flowInfo?.title}</h1>
<h1 class="pf-c-title pf-m-3xl">${title}</h1>
</header>
<div class="pf-c-login__main-body">
<form class="pf-c-form" action="${this.challenge.url}" method="POST">