25 lines
976 B
HTML
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>
|