mirror of
https://github.com/kanidm/kanidm.git
synced 2025-06-12 11:07:46 +02:00
Post release some small user issues arose * Optimise the autofocus for logins with passkeys to limit clicks * Sort login mechs by strength * Fix cookies to persist between browser restarts
32 lines
1,004 B
HTML
32 lines
1,004 B
HTML
(% extends "login_base.html" %)
|
|
|
|
(% block logincontainer %)
|
|
<script id="data" type="application/json">
|
|
(( chal|safe ))
|
|
</script>
|
|
|
|
<script
|
|
src="/pkg/external/base64.js?v=((crate::https::cache_buster::get_cache_buster_key()))"
|
|
async></script>
|
|
<script
|
|
src="/pkg/pkhtml.js?v=((crate::https::cache_buster::get_cache_buster_key()))"
|
|
defer></script>
|
|
|
|
<div class="justify-content-center">
|
|
(% if passkey %)
|
|
<form id="cred-form" action="/ui/login/passkey" method="POST">
|
|
<input hidden="hidden" name="cred" id="cred">
|
|
<button hx-disable type="button" autofocus class="btn btn-dark"
|
|
id="start-passkey-button">Use Passkey</button>
|
|
</form>
|
|
(% else %)
|
|
<form id="cred-form" action="/ui/login/seckey" method="POST">
|
|
<input hidden="hidden" name="cred" id="cred">
|
|
<button hx-disable type="button" autofocus class="btn btn-dark"
|
|
id="start-seckey-button">Use Security Key</button>
|
|
</form>
|
|
(% endif %)
|
|
</div>
|
|
|
|
(% endblock %)
|