stages/authenticator_validate: fix post from code form

This commit is contained in:
Jens Langhammer
2021-02-24 20:39:39 +01:00
parent 2a0f940a42
commit 007676b400
2 changed files with 5 additions and 5 deletions

View File

@ -33,6 +33,8 @@ export class AuthenticatorValidateStageWebCode extends BaseStage {
</div>
</div>
</div>
<input type="hidden" name="device_class" value=${this.deviceChallenge?.device_class}>
<input type="hidden" name="device_uid" value=${this.deviceChallenge?.device_uid}>
<ak-form-element
label="${gettext("Code")}"
@ -41,7 +43,7 @@ export class AuthenticatorValidateStageWebCode extends BaseStage {
.errors=${(this.challenge?.response_errors || {})["code"]}>
<!-- @ts-ignore -->
<input type="text"
name="code"
name="challenge"
inputmode="numeric"
pattern="[0-9]*"
placeholder="${gettext("Please enter your TOTP Code")}"