web/flows: fix ak-locale prompt being rendered without name attribute

closes #3100

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-09-22 10:35:20 +02:00
parent 49b6aabb02
commit aa48f6dd9d

View file

@ -115,7 +115,7 @@ export class PromptStage extends BaseStage<PromptChallenge, PromptChallengeRespo
case PromptTypeEnum.Static:
return `<p>${prompt.placeholder}</p>`;
case PromptTypeEnum.AkLocale:
return `<select class="pf-c-form-control">
return `<select class="pf-c-form-control" name="${prompt.fieldKey}">
<option value="" ${prompt.placeholder === "" ? "selected" : ""}>
${t`Auto-detect (based on your browser)`}
</option>