core: fix blueprint export (#8695)

* core: fix error when exporting blueprint

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* also slightly reword source selection

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2024-02-26 13:03:10 +01:00
committed by GitHub
parent 060cea219b
commit 5b6b059b40
2 changed files with 3 additions and 3 deletions

View File

@ -207,7 +207,7 @@ export class IdentificationStage extends BaseStage<
renderInput(): TemplateResult {
let type: "text" | "email" = "text";
if (!this.challenge?.userFields || this.challenge.userFields.length === 0) {
return html`<p>${msg("Select one of the sources below to login.")}</p>`;
return html`<p>${msg("Select one of the options below to continue.")}</p>`;
}
const fields = (this.challenge?.userFields || []).sort();
// Check if the field should be *only* email to set the input type