mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-21 06:54:25 +00:00
# Which Problems Are Solved As reported to support, the back button on the various 2FA pages in login V1 opened the default redirect URI, which likely started a new auth request (e.g. from Console). # How the Problems Are Solved Change the back buttons to navigate to the login screen again, where a user can change the username. Additionally, the back button has been added to the U2F verification screen. # Additional Changes None # Additional Context - from support - backport to v4
52 lines
1.8 KiB
HTML
52 lines
1.8 KiB
HTML
{{template "main-top" .}}
|
|
|
|
<div class="lgn-head">
|
|
<h1>{{t "VerifyOTP.Title"}}</h1>
|
|
|
|
{{ template "user-profile" . }}
|
|
|
|
<p>{{t "VerifyOTP.Description"}}</p>
|
|
</div>
|
|
|
|
<form action="{{ mfaOTPVerifyUrl }}" method="POST">
|
|
|
|
{{ .CSRF }}
|
|
|
|
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
|
<input type="hidden" name="selectedProvider" value="{{ .SelectedProvider }}" />
|
|
|
|
<div class="fields">
|
|
<label class="lgn-label" for="code">{{t "VerifyOTP.CodeLabel"}}</label>
|
|
<input class="lgn-input" type="text" id="code" name="code" autocomplete="one-time-code" autofocus required>
|
|
</div>
|
|
|
|
{{ template "error-message" .}}
|
|
|
|
<div class="lgn-actions lgn-reverse-order">
|
|
<!-- position element in header -->
|
|
<a class="lgn-icon-button lgn-left-action" href="{{ loginNameChangeUrl .AuthReqID }}">
|
|
<i class="lgn-icon-arrow-left-solid"></i>
|
|
</a>
|
|
<button class="lgn-raised-button lgn-primary" id="submit-button" type="submit">{{t "VerifyOTP.NextButtonText"}}</button>
|
|
|
|
<span class="fill-space"></span>
|
|
|
|
<button type="submit" name="resend" value="true" class="lgn-stroked-button" formnovalidate>{{t "VerifyOTP.ResendButtonText"}}</button>
|
|
</div>
|
|
|
|
{{ if .MFAProviders }}
|
|
<div class="lgn-mfa-other">
|
|
<p>{{t "MFAProvider.ChooseOther"}}</p>
|
|
{{ range $provider := .MFAProviders}}
|
|
{{ $providerName := (t (printf "MFAProvider.Provider%v" $provider)) }}
|
|
<button class="lgn-stroked-button" type="submit" name="provider" value="{{$provider}}"
|
|
formnovalidate>{{$providerName}}</button>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
</form>
|
|
|
|
<script src="{{ resourceUrl "scripts/form_submit.js" }}"></script>
|
|
<script src="{{ resourceUrl "scripts/default_form_validation.js" }}"></script>
|
|
{{template "main-bottom" .}}
|