web/flows: fix display error when using IdentificationStage without input fields
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
70d1e3a0cb
commit
f725009530
|
@ -176,7 +176,7 @@ export class IdentificationStage extends BaseStage<
|
|||
|
||||
renderInput(): TemplateResult {
|
||||
let type = "text";
|
||||
if (!this.challenge?.userFields) {
|
||||
if (!this.challenge?.userFields || this.challenge.userFields.length === 0) {
|
||||
return html`<p>${t`Select one of the sources below to login.`}</p>`;
|
||||
}
|
||||
const fields = (this.challenge?.userFields || []).sort();
|
||||
|
|
Reference in a new issue