diff --git a/auth/assets/templates/mfa-totp-disable.html.tpl b/auth/assets/templates/mfa-totp-disable.html.tpl index e16c4f4f6..557c63659 100644 --- a/auth/assets/templates/mfa-totp-disable.html.tpl +++ b/auth/assets/templates/mfa-totp-disable.html.tpl @@ -10,7 +10,7 @@ Disable by entering existing code. {{ if .form.error }} - diff --git a/auth/assets/templates/mfa-totp.html.tpl b/auth/assets/templates/mfa-totp.html.tpl index e3ca54b1a..20adaf09a 100644 --- a/auth/assets/templates/mfa-totp.html.tpl +++ b/auth/assets/templates/mfa-totp.html.tpl @@ -3,7 +3,7 @@

Configure two-factor authentication with TOTP

{{ if .enforced }} -

+

TOTP multi factor authentication is enforced by Corteza administrator. Please configure it right away.

@@ -12,9 +12,9 @@
-
+
{{ .secret }}
- +
@@ -54,8 +55,8 @@
-
-

+

+

Corteza uses time based one time passwords (TOTP) as one of the underlying technologies for two-factor authentication. Use one of the applications listed below and type in the secret or scan the QR code. diff --git a/auth/assets/templates/mfa.html.tpl b/auth/assets/templates/mfa.html.tpl index d292b67f8..3d26f0619 100644 --- a/auth/assets/templates/mfa.html.tpl +++ b/auth/assets/templates/mfa.html.tpl @@ -1,5 +1,5 @@ {{ template "inc_header.html.tpl" set . "hideNav" true }} -

+

Multi-factor authentication

{{ if .emailOtpPending }} @@ -11,7 +11,7 @@
Check your inbox and enter the received code
{{ if .form.emailOtpError }} - @@ -43,7 +44,7 @@ @@ -51,8 +52,8 @@ {{ else if not .emailOtpDisabled }} -

- Email OTP confirmed +

+ Email OTP confirmed

{{ end }} @@ -62,7 +63,7 @@ method="POST" action="{{ links.Mfa }}" > -
Check your TOTP application and enter the received code
+
Check your TOTP application and enter the code you received
{{ if .form.totpError }} @@ -96,8 +98,8 @@ {{ else if not .totpDisabled }} -

- TOTP confirmed +

+ TOTP confirmed

{{ end }}
diff --git a/auth/assets/templates/scenarios.yaml b/auth/assets/templates/scenarios.yaml index 83a180189..1fd159b67 100644 --- a/auth/assets/templates/scenarios.yaml +++ b/auth/assets/templates/scenarios.yaml @@ -70,8 +70,29 @@ security: EmailOTP: { Enabled: true } mfa: + Defautl: {} MFA pending: emailOtpPending: true + totpDisabled: true + TOTP pending: + totpPending: true + With error: + emailOtpPending: true + form: + emailOtpError: "There was an error..." + +mfa-totp: + Default: + devQRImage: https://awgsalesservices.com/wp-content/uploads/2019/02/QR-code-example.jpg + TOTP enforced: + enforced: true + devQRImage: https://awgsalesservices.com/wp-content/uploads/2019/02/QR-code-example.jpg + +mfa-totp-disable: + Default: {} + With error: + form: + error: "There was an error..." logout: Default: {}