apeters 1d204f26b8 pre-Korves.Net
Signed-off-by: apeters <apeters@korves.net>
2025-05-21 08:05:07 +00:00

25 lines
976 B
HTML

<article
hx-get="/auth/login/request/check/{{ data.request_token }}"
hx-trigger="every 1s"
hx-ext="ignore:loading-states">
<header>Authentication request</header>
<h6>How to proceed</h6>
<ol>
{% if data.request_issued_to_user %}
<li>A request was sent to logged in users matching that name.</li>
{% endif %}
<li>You may also use this link (click to copy):
<p>
<b class="pointer" hx-on:click="!window.s?s=this.textContent:null;navigator.clipboard.writeText(s);this.textContent='Copied 👍';setTimeout(()=>{this.textContent=s}, 1000)">
{{- request.origin }}/auth/login/request/confirm/{{ data.request_token -}}
</b>
</p>
</li>
</ol>
<footer>
<button _="on load call countdownSeconds(me, {{ AUTH_REQUEST_TIMEOUT }}) end"
hx-get="/"
hx-target="#body-main" hx-push-url="true" hx-confirm="Cancel process?">Cancel process</button>
</footer>
</article>