mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-07 06:42:15 +00:00
* fix: enable login with password when passwordless set up * enable only it allowed
43 lines
1.4 KiB
HTML
43 lines
1.4 KiB
HTML
{{template "main-top" .}}
|
|
|
|
<div class="head">
|
|
{{ template "user-profile" . }}
|
|
|
|
<p>{{t "Passwordless.Description"}}</p>
|
|
</div>
|
|
|
|
<form action="{{ passwordLessVerificationUrl }}" method="POST">
|
|
|
|
{{ .CSRF }}
|
|
|
|
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}"/>
|
|
<input type="hidden" name="credentialAssertionData" value="{{ .CredentialCreationData }}"/>
|
|
<input type="hidden" name="credentialData"/>
|
|
|
|
<div id="webauthn">
|
|
<p class="wa-no-support error hidden">{{t "WebAuthN.NotSupported"}}</p>
|
|
<a id="btn-login" class="button primary wa-support">{{t "Actions.ValidateToken"}}</a>
|
|
<div id="wa-error" class="error hidden">
|
|
<span class="cause"></span>
|
|
<span>{{t "WebAuthN.Error.Retry"}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{{ template "error-message" .}}
|
|
|
|
<div class="actions">
|
|
{{if .PasswordLogin}}
|
|
<button class="secondary" name="passwordlogin" value="true" type="submit">{{t "Actions.PasswordLogin"}}</button>
|
|
{{end}}
|
|
<a href="{{ loginNameChangeUrl .AuthReqID }}">
|
|
<button class="secondary" type="button">{{t "Actions.Back"}}</button>
|
|
</a>
|
|
</div>
|
|
</form>
|
|
|
|
<script src="{{ resourceUrl "scripts/base64.js" }}"></script>
|
|
<script src="{{ resourceUrl "scripts/webauthn.js" }}"></script>
|
|
<script src="{{ resourceUrl "scripts/webauthn_login.js" }}"></script>
|
|
|
|
{{template "main-bottom" .}}
|