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`<p>${t`A code has been sent to you via SMS.`}</p>`
|
||||||
: html``}
|
: html``}
|
||||||
<ak-form-element
|
<ak-form-element
|
||||||
label="${t`Code`}"
|
label="${this.deviceChallenge?.deviceClass === DeviceClassesEnum.Static
|
||||||
|
? t`Static token`
|
||||||
|
: t`Code`}"
|
||||||
?required="${true}"
|
?required="${true}"
|
||||||
class="pf-c-form__group"
|
class="pf-c-form__group"
|
||||||
.errors=${(this.challenge?.responseErrors || {})["code"]}
|
.errors=${(this.challenge?.responseErrors || {})["code"]}
|
||||||
|
@ -82,7 +84,7 @@ export class AuthenticatorValidateStageWebCode extends BaseStage<
|
||||||
: "numeric"}"
|
: "numeric"}"
|
||||||
pattern="${this.deviceChallenge?.deviceClass ===
|
pattern="${this.deviceChallenge?.deviceClass ===
|
||||||
DeviceClassesEnum.Static
|
DeviceClassesEnum.Static
|
||||||
? ""
|
? "[0-9a-zA-Z]*"
|
||||||
: "[0-9]*"}"
|
: "[0-9]*"}"
|
||||||
placeholder="${t`Please enter your Code`}"
|
placeholder="${t`Please enter your Code`}"
|
||||||
autofocus=""
|
autofocus=""
|
||||||
|
|
|
@ -4218,6 +4218,10 @@ msgstr "Static Tokens"
|
||||||
msgid "Static authenticator"
|
msgid "Static authenticator"
|
||||||
msgstr "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
|
#: src/user/user-settings/mfa/MFADevicesPage.ts
|
||||||
msgid "Static tokens"
|
msgid "Static tokens"
|
||||||
msgstr "Static tokens"
|
msgstr "Static tokens"
|
||||||
|
|
|
@ -4176,6 +4176,10 @@ msgstr "Jetons statiques"
|
||||||
msgid "Static authenticator"
|
msgid "Static authenticator"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStageCode.ts
|
||||||
|
msgid "Static token"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/user/user-settings/mfa/MFADevicesPage.ts
|
#: src/user/user-settings/mfa/MFADevicesPage.ts
|
||||||
msgid "Static tokens"
|
msgid "Static tokens"
|
||||||
msgstr "Jetons statiques"
|
msgstr "Jetons statiques"
|
||||||
|
|
|
@ -4210,6 +4210,10 @@ msgstr ""
|
||||||
msgid "Static authenticator"
|
msgid "Static authenticator"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStageCode.ts
|
||||||
|
msgid "Static token"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/user/user-settings/mfa/MFADevicesPage.ts
|
#: src/user/user-settings/mfa/MFADevicesPage.ts
|
||||||
msgid "Static tokens"
|
msgid "Static tokens"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Reference in New Issue