kanidm/server/core/templates/login_totp_partial.html
Firstyear 3ec9b320a1
20240620 htmx ()
* progress
* Okay, main swap works and can login with pw+totp
* Feedback
* bypassing docs tests temporarily
2024-07-02 10:59:06 +00:00

31 lines
679 B
HTML

<label for="totp" class="form-label">TOTP</label>
(% match errors %)
(% when LoginTotpError::Syntax %)
<span class="error">Invalid Value - TOTP must only consist of numbers</span>
(% when LoginTotpError::None %)
(% endmatch %)
<form id="login" hx-post='/ui/api/login_totp' hx-target="#login-form-container" hx-push-url="false">
<div class="input-group mb-3">
<input
autofocus=true
class="autofocus form-control"
id="totp"
name="totp"
type="text"
autocomplete="off"
value=""
required=true
/>
</div>
<div class="input-group mb-3 justify-content-md-center">
<button
type="submit"
class="btn btn-dark"
>Begin</button>
</div>
</form>