diff --git a/web/src/pages/stages/authenticator_sms/AuthenticatorSMSStageForm.ts b/web/src/pages/stages/authenticator_sms/AuthenticatorSMSStageForm.ts index ca98c06e3..0990a77f1 100644 --- a/web/src/pages/stages/authenticator_sms/AuthenticatorSMSStageForm.ts +++ b/web/src/pages/stages/authenticator_sms/AuthenticatorSMSStageForm.ts @@ -34,7 +34,7 @@ export class AuthenticatorSMSStageForm extends ModelForm + +

+ ${t`Get this value from https://console.twilio.com`} +

+ + + +

+ ${t`Get this value from https://console.twilio.com`} +

+
`; + } + + renderProviderGeneric(): TemplateResult { + return html` { + const current = (ev.target as HTMLInputElement).value; + this.authType = current as AuthTypeEnum; + }} + ?required=${true} + name="authType" + > + + + + +

+ ${t`This is the full endpoint to send POST requests to.`} +

+
+ + +

+ ${t`This is the username to be used with basic auth or the token when used with bearer token`} +

+
+ + +

+ ${t`This is the password to be used with basic auth`} +

+
`; + } + renderForm(): TemplateResult { return html`
@@ -117,113 +212,9 @@ export class AuthenticatorSMSStageForm extends ModelForm - - - -

- ${t`Get this value from https://console.twilio.com`} -

-
- - -

- ${t`Get this value from https://console.twilio.com`} -

-
- { - const current = (ev.target as HTMLInputElement).value; - this.authType = current as AuthTypeEnum; - }} - ?required=${true} - name="authType" - > - - - - -

- ${t`This is the full endpoint to send POST requests to.`} -

-
- - -

- ${t`This is the username to be used with basic auth or the token when used with bearer token`} -

-
- - -

- ${t`This is the password to be used with basic auth`} -

-
+ ${this.provider === ProviderEnum.Generic + ? this.renderProviderGeneric() + : this.renderProviderTwillio()}