Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
107 lines
2.4 KiB
Smarty
107 lines
2.4 KiB
Smarty
{{ template "inc_header.html.tpl" set . "hideNav" true }}
|
|
<div class="card-body p-0 mb-2">
|
|
<h4 class="mb-0 p-3 border-bottom">{{ tr "mfa.template.title" }}</h4>
|
|
|
|
{{ if .emailOtpPending }}
|
|
<form
|
|
class="p-3"
|
|
method="POST"
|
|
action="{{ links.Mfa }}"
|
|
>
|
|
<p>{{ tr "mfa.template.email.instructions" }}</p>
|
|
|
|
{{ if .form.emailOtpError }}
|
|
<div class="text-danger my-4 font-weight-bold" role="alert">
|
|
{{ .form.emailOtpError }}
|
|
</div>
|
|
{{ end }}
|
|
{{ .csrfField }}
|
|
|
|
|
|
<div class="input-group my-3">
|
|
<input
|
|
type="text"
|
|
required
|
|
class="form-control text-center mfa-code-mask"
|
|
name="code"
|
|
maxlength="6"
|
|
minlength="6"
|
|
aria-required="true"
|
|
placeholder="000 000"
|
|
autocomplete="off"
|
|
style="letter-spacing:5px;font-size:20px;"
|
|
aria-label="{{ tr "mfa.template.email.code" }}">
|
|
</div>
|
|
|
|
<button
|
|
class="btn btn-primary btn-block btn-lg"
|
|
name="action"
|
|
value="verifyEmailOtp"
|
|
type="submit"
|
|
>
|
|
{{ tr "mfa.template.email.verify" }}
|
|
</button>
|
|
|
|
<a
|
|
href="{{ links.Mfa }}?action=resendEmailOtp"
|
|
class="btn btn-light btn-block btn-lg text-dark"
|
|
name="action"
|
|
value="resendEmailOtp"
|
|
>
|
|
{{ tr "mfa.template.email.resend" }}
|
|
</a>
|
|
</form>
|
|
{{ else if not .emailOtpDisabled }}
|
|
<p class="p-3 mb-0">
|
|
<i class="bi bi-check-circle text-success h5 mr-1"></i> {{ tr "mfa.template.email.confirmed" }}
|
|
</p>
|
|
{{ end }}
|
|
|
|
{{ if .totpPending }}
|
|
<form
|
|
class="p-3"
|
|
method="POST"
|
|
action="{{ links.Mfa }}"
|
|
>
|
|
<p>{{ tr "mfa.template.totp.instructions" }}</p>
|
|
|
|
{{ if .form.totpError }}
|
|
<div class="alert alert-danger" role="alert">
|
|
{{ .form.totpError }}
|
|
</div>
|
|
{{ end }}
|
|
{{ .csrfField }}
|
|
|
|
|
|
<div class="input-group my-3">
|
|
<input
|
|
type="text"
|
|
required
|
|
class="form-control text-center mfa-code-mask"
|
|
name="code"
|
|
maxlength="6"
|
|
minlength="6"
|
|
aria-required="true"
|
|
placeholder="000 000"
|
|
autocomplete="off"
|
|
style="letter-spacing:5px;font-size:20px;"
|
|
aria-label="{{ tr "mfa.template.totp.code" }}">
|
|
</div>
|
|
|
|
<button
|
|
class="btn btn-primary btn-block btn-lg"
|
|
type="submit"
|
|
name="action"
|
|
value="verifyTotp"
|
|
>
|
|
{{ tr "mfa.template.totp.verify" }}
|
|
</button>
|
|
</form>
|
|
{{ else if and (not .totpDisabled) (not .totpPending) (not .totpUnconfigured) }}
|
|
<p class="px-3 pt-3 pb-2 mb-0">
|
|
<i class="bi bi-check-circle text-success h5 mr-1"></i> {{ tr "mfa.template.totp.confirmed" }}
|
|
</p>
|
|
{{ end }}
|
|
</div>
|
|
{{ template "inc_footer.html.tpl" . }}
|