web/flows: fix authenticator_validate not allowing alpha-numeric codes due to empty pattern
closes #1663 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
5bc1301043
commit
2a21ebf7b0
|
@ -67,7 +67,9 @@ export class AuthenticatorValidateStageWebCode extends BaseStage<
|
|||
? html`<p>${t`A code has been sent to you via SMS.`}</p>`
|
||||
: html``}
|
||||
<ak-form-element
|
||||
label="${t`Code`}"
|
||||
label="${this.deviceChallenge?.deviceClass === DeviceClassesEnum.Static
|
||||
? t`Static token`
|
||||
: t`Code`}"
|
||||
?required="${true}"
|
||||
class="pf-c-form__group"
|
||||
.errors=${(this.challenge?.responseErrors || {})["code"]}
|
||||
|
@ -82,7 +84,7 @@ export class AuthenticatorValidateStageWebCode extends BaseStage<
|
|||
: "numeric"}"
|
||||
pattern="${this.deviceChallenge?.deviceClass ===
|
||||
DeviceClassesEnum.Static
|
||||
? ""
|
||||
? "[0-9a-zA-Z]*"
|
||||
: "[0-9]*"}"
|
||||
placeholder="${t`Please enter your Code`}"
|
||||
autofocus=""
|
||||
|
|
|
@ -4218,6 +4218,10 @@ msgstr "Static Tokens"
|
|||
msgid "Static authenticator"
|
||||
msgstr "Static authenticator"
|
||||
|
||||
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStageCode.ts
|
||||
msgid "Static token"
|
||||
msgstr "Static token"
|
||||
|
||||
#: src/user/user-settings/mfa/MFADevicesPage.ts
|
||||
msgid "Static tokens"
|
||||
msgstr "Static tokens"
|
||||
|
|
|
@ -4176,6 +4176,10 @@ msgstr "Jetons statiques"
|
|||
msgid "Static authenticator"
|
||||
msgstr ""
|
||||
|
||||
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStageCode.ts
|
||||
msgid "Static token"
|
||||
msgstr ""
|
||||
|
||||
#: src/user/user-settings/mfa/MFADevicesPage.ts
|
||||
msgid "Static tokens"
|
||||
msgstr "Jetons statiques"
|
||||
|
|
|
@ -4210,6 +4210,10 @@ msgstr ""
|
|||
msgid "Static authenticator"
|
||||
msgstr ""
|
||||
|
||||
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStageCode.ts
|
||||
msgid "Static token"
|
||||
msgstr ""
|
||||
|
||||
#: src/user/user-settings/mfa/MFADevicesPage.ts
|
||||
msgid "Static tokens"
|
||||
msgstr ""
|
||||
|
|
Reference in New Issue