mirror of
https://github.com/kanidm/kanidm.git
synced 2025-04-18 00:05:39 +02:00
* Add support for prefers-color-scheme using Bootstrap classes. * Move stylesheet changes to separate javascript file. * fix(html): don't specify the integrity hash in the tag for style.js * fix(log): debug-log integrity hashes for troubleshooting * fix(css): move to using bootstrap standard variables for colours and theming * fix(js): rewrite to simplify and use standard bootstrap functionality * fix(makefile): codespell thingie was complaining * run prettier on css/js. --------- Co-authored-by: James Hodgkinson <james@terminaloutcomes.com>
32 lines
1,010 B
HTML
32 lines
1,010 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-primary"
|
|
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-primary"
|
|
id="start-seckey-button">Use Security Key</button>
|
|
</form>
|
|
(% endif %)
|
|
</div>
|
|
|
|
(% endblock %)
|