|
|
|
|
@ -10,25 +10,24 @@
|
|
|
|
|
|
|
|
|
|
<div class="text-sm mt-2 text-gray-500 dark:text-gray-200 leading-tight">
|
|
|
|
|
Enter the code from your authenticator application before it expires or wait for a new one.
|
|
|
|
|
<div class="mt-6 flex items-stretch flex-grow">
|
|
|
|
|
<div class="mt-6 flex items-center justify-center sm:justify-start">
|
|
|
|
|
<div>
|
|
|
|
|
<%= text_input(f, :code,
|
|
|
|
|
class:
|
|
|
|
|
"tracking-widest font-medium shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-48 px-8 border-gray-300 dark:border-gray-500 dark:text-gray-200 dark:bg-gray-900 rounded-l-md",
|
|
|
|
|
"font-mono tracking-[0.5em] w-36 pl-5 font-medium shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block border-gray-300 dark:border-gray-500 dark:text-gray-200 dark:bg-gray-900 rounded-l-md",
|
|
|
|
|
oninput:
|
|
|
|
|
"this.value=this.value.replace(/[^0-9]/g, ''); if (this.value.length >= 6) document.getElementById('verify').focus()",
|
|
|
|
|
onclick: "this.select();",
|
|
|
|
|
maxlength: "6",
|
|
|
|
|
placeholder: "••••••",
|
|
|
|
|
value: "",
|
|
|
|
|
style: "letter-spacing: 10px; margin-right: -10px;",
|
|
|
|
|
required: "required"
|
|
|
|
|
) %>
|
|
|
|
|
</div>
|
|
|
|
|
<button id="verify" class="button rounded-l-none">Verify →</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="mt-6 flex flex-row justify-between items-center">
|
|
|
|
|
<div class="mt-6 flex flex-col">
|
|
|
|
|
<p class="text-sm">
|
|
|
|
|
Changed your mind?
|
|
|
|
|
<a
|
|
|
|
|
|