mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Minor tweaks to cred reset ui (#3284)
This commit is contained in:
parent
b2906829e2
commit
4ee9a3a098
|
@ -5,13 +5,14 @@
|
||||||
(% endblock %)
|
(% endblock %)
|
||||||
|
|
||||||
(% block body %)
|
(% block body %)
|
||||||
<main class="form-cred-reset-body container my-auto">
|
<main class="container-lg my-auto">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<h3>Updating Credentials</h3>
|
<h3>Updating Credentials</h3>
|
||||||
<p><strong>User:</strong> (( names ))</p>
|
<p><strong>User:</strong> (( names ))</p>
|
||||||
<p><strong>Kanidm domain:</strong> (( domain_info.display_name() ))</p>
|
<p><strong>Kanidm domain:</strong> (( domain_info.display_name() ))</p>
|
||||||
</div>
|
</div>
|
||||||
<hr class="my-4" />
|
<div class="ps-sm-4 ps-md-5 pt-sm-0 pt-4">
|
||||||
(( credentials_update_partial|safe ))
|
(( credentials_update_partial|safe ))
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
(% endblock %)
|
(% endblock %)
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
src="/pkg/img/logo-square.svg?v=((crate::https::cache_buster::get_cache_buster_key()))"
|
src="/pkg/img/logo-square.svg?v=((crate::https::cache_buster::get_cache_buster_key()))"
|
||||||
alt="(( domain_info.display_name() ))" class="kanidm_logo" />
|
alt="(( domain_info.display_name() ))" class="kanidm_logo" />
|
||||||
(% endif %)
|
(% endif %)
|
||||||
<h2>Credential Reset</h2>
|
<h2>(( domain_info.display_name() ))</h2>
|
||||||
<h3>(( domain_info.display_name() ))</h3>
|
<div />
|
||||||
|
<h3>Credential Reset</h3>
|
||||||
</center>
|
</center>
|
||||||
<form class="mb-3">
|
<form class="mb-3">
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -81,24 +81,12 @@
|
||||||
(% when CUCredState::Modifiable %)
|
(% when CUCredState::Modifiable %)
|
||||||
(% include "credentials_update_passkeys.html" %)
|
(% include "credentials_update_passkeys.html" %)
|
||||||
<!-- Here we are modifiable so we can render the button to add passkeys -->
|
<!-- Here we are modifiable so we can render the button to add passkeys -->
|
||||||
<div class="btn-group mt-4">
|
<button type="button" class="btn btn-primary"
|
||||||
<button type="button" class="btn btn-secondary"
|
|
||||||
hx-post="/ui/reset/add_passkey"
|
hx-post="/ui/reset/add_passkey"
|
||||||
hx-vals='{"class": "Any"}'
|
hx-vals='{"class": "Any"}'
|
||||||
hx-target="#credentialUpdateDynamicSection">
|
hx-target="#credentialUpdateDynamicSection">
|
||||||
Add Passkey
|
Add Passkey
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
|
||||||
class="btn btn-secondary dropdown-toggle dropdown-toggle-split"
|
|
||||||
data-bs-toggle="dropdown" aria-expanded="false">
|
|
||||||
<span class="visually-hidden">Toggle Dropdown</span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a class="dropdown-item" hx-post="/ui/api/cancel_mfareg"
|
|
||||||
hx-swap="none">Cancel MFA Registration
|
|
||||||
session</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
(% when CUCredState::DeleteOnly %)
|
(% when CUCredState::DeleteOnly %)
|
||||||
(% if passkeys.len() > 0 %)
|
(% if passkeys.len() > 0 %)
|
||||||
|
@ -117,7 +105,7 @@
|
||||||
<hr class="my-4" />
|
<hr class="my-4" />
|
||||||
<h4>UNIX Password</h4>
|
<h4>UNIX Password</h4>
|
||||||
<p>This password is used when authenticating to a UNIX-like system</p>
|
<p>This password is used when authenticating to a UNIX-like system</p>
|
||||||
<button type="button" class="btn btn-secondary"
|
<button type="button" class="btn btn-primary"
|
||||||
hx-post="/ui/reset/set_unixcred"
|
hx-post="/ui/reset/set_unixcred"
|
||||||
hx-target="#credentialUpdateDynamicSection">
|
hx-target="#credentialUpdateDynamicSection">
|
||||||
Set UNIX Password
|
Set UNIX Password
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<h6><b>Password</b></h6>
|
<h6><b>Password</b></h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-shrink-0 ps-3">
|
<div class="flex-shrink-0 ps-3">
|
||||||
<button type="button" class="btn btn-sm btn-secondary" hx-post="/ui/reset/change_password">
|
<button type="button" class="btn btn-sm btn-primary" hx-post="/ui/reset/change_password">
|
||||||
Change Password
|
Change Password
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<p>TOTPs are 6 digit codes generated on-demand as a second authentication factor.</p>
|
<p>TOTPs are 6 digit codes generated on-demand as a second authentication factor.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-shrink-0 ps-3">
|
<div class="flex-shrink-0 ps-3">
|
||||||
<button type="button" class="btn btn-sm btn-secondary" hx-post="/ui/reset/add_totp">
|
<button type="button" class="btn btn-sm btn-primary" hx-post="/ui/reset/add_totp">
|
||||||
Add TOTP
|
Add TOTP
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue