mirror of
https://github.com/zitadel/zitadel.git
synced 2025-05-15 16:48:21 +00:00

* fix: mfa prompt styling * register password field validation * loginname overflow, mfa hover effect * cleanup * Update internal/api/ui/login/static/resources/scripts/password_policy_check.js Co-authored-by: Silvan <silvan.reusser@gmail.com> * prettier if check * cleanup * Update internal/api/ui/login/static/resources/scripts/password_policy_check.js Co-authored-by: Livio Spring <livio.a@gmail.com> * fix confirmation validation, cleanup * rm log * email type validation * add email validation * change pattern * pattern * comment RFC 2822 * dont wrapp org name * rm email validation Co-authored-by: Silvan <silvan.reusser@gmail.com> Co-authored-by: Livio Spring <livio.a@gmail.com>
71 lines
1.8 KiB
HTML
71 lines
1.8 KiB
HTML
{{template "main-top" .}}
|
|
|
|
<div class="lgn-head">
|
|
<h1>{{t "InitMFAPrompt.Title"}}</h1>
|
|
{{ template "user-profile" . }}
|
|
|
|
<p>{{t "InitMFAPrompt.Description"}}</p>
|
|
</div>
|
|
|
|
<form action="{{ mfaPromptUrl }}" method="POST">
|
|
{{ .CSRF }}
|
|
|
|
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
|
|
|
<div class="lgn-mfa-options">
|
|
{{ range $provider := .MFAProviders}} {{ $providerName := (t (printf
|
|
"InitMFAPrompt.Provider%v" $provider)) }}
|
|
<div class="mfa">
|
|
<label>
|
|
<input
|
|
id="{{ $provider }}"
|
|
type="radio"
|
|
name="provider"
|
|
value="{{ $provider }}"
|
|
required
|
|
/>
|
|
{{ if eq $provider 0 }}
|
|
<div class="mfa-img">
|
|
<img width="100px" height="100px" alt="OTP" src="{{ resourceUrl
|
|
"images/mfa/mfa-otp.svg" }}" />
|
|
</div>
|
|
{{ end }} {{ if eq $provider 1 }}
|
|
<div class="mfa-img">
|
|
<img width="100px" height="100px" alt="OTP" src="{{ resourceUrl
|
|
"images/mfa/mfa-u2f.svg" }}" />
|
|
</div>
|
|
{{ end }}
|
|
<span>{{ $providerName }} </span>
|
|
</label>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
|
|
<div class="lgn-actions">
|
|
<!-- position element in header -->
|
|
<a class="lgn-icon-button lgn-left-action" href="{{ loginUrl }}">
|
|
<i class="lgn-icon-arrow-left-solid"></i>
|
|
</a>
|
|
|
|
{{if not .MFARequired}}
|
|
<button
|
|
class="lgn-stroked-button"
|
|
name="skip"
|
|
value="true"
|
|
type="submit"
|
|
formnovalidate
|
|
>
|
|
{{t "InitMFAPrompt.SkipButtonText"}}
|
|
</button>
|
|
{{end}}
|
|
<span class="fill-space"></span>
|
|
<button class="lgn-raised-button lgn-primary" type="submit">
|
|
{{t "InitMFAPrompt.NextButtonText"}}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
|
|
<script src="{{ resourceUrl "scripts/mfa.js" }}"></script>
|
|
|
|
{{template "main-bottom" .}}
|