mirror of
https://github.com/zitadel/zitadel.git
synced 2025-05-28 08:38:22 +00:00
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
![]() |
{{template "main-top" .}}
|
||
|
|
||
|
|
||
|
<h1>{{t "MfaInitVerify.Title"}}</h1>
|
||
|
<p>{{t "MfaInitVerify.Description"}}</p>
|
||
|
|
||
|
<form action="{{ mfaInitVerifyUrl }}" method="POST">
|
||
|
|
||
|
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
||
|
<input type="hidden" name="mfaType" value="{{ .MfaType }}" />
|
||
|
<input type="hidden" name="url" value="{{ .Url }}" />
|
||
|
<input type="hidden" name="secret" value="{{ .Secret }}" />
|
||
|
|
||
|
{{if (eq .MfaType 0) }}
|
||
|
<p>{{t "MfaInitVerify.OtpDescription"}}</p>
|
||
|
<div id="qrcode">
|
||
|
{{.QrCode}}
|
||
|
</div>
|
||
|
<div class="fields">
|
||
|
<div class="field">
|
||
|
<span class="label" for="secret">{{t "MfaInitVerify.Secret"}}</span>
|
||
|
<span class="input" id="secret">
|
||
|
{{.Secret}}
|
||
|
<span class="copy material-icons" onclick="copyToClipboard('{{ .Secret }}')">content_copy</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<label class="label" for="code">{{t "MfaInitVerify.Code"}}</label>
|
||
|
<input class="input" type="text" id="code" name="code" autocomplete="off" autofocus required>
|
||
|
</div>
|
||
|
</div>
|
||
|
{{end}}
|
||
|
|
||
|
<div class="actions">
|
||
|
<button class="primary right" type="submit">{{t "Actions.Next"}}</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<script>
|
||
|
const copyToClipboard = str => {
|
||
|
navigator.clipboard.writeText(str);
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
|
||
|
{{template "main-bottom" .}}
|
||
|
|