index.eta 654 B

1234567891011121314151617181920212223
  1. <% layout("/en/layout", { title: "auth" }) %>
  2. <h2>auth</h2>
  3. <p>enter your email and we will send you a code.</p>
  4. <% const errorValue = it.error?.split('.').reduce((a, b) => a[b], it.lang.auth?.errors) %>
  5. <% if (typeof errorValue === "string") { %>
  6. <p class="error" style="color: red;"><%= errorValue %></p>
  7. <% } %>
  8. <form action="/en/auth" method="post">
  9. <input type="email" name="email" placeholder="your@email.com" required />
  10. <div class="cf-turnstile" data-sitekey="<%= it.siteKey %>"></div>
  11. <button type="submit">send</button>
  12. </form>
  13. <script
  14. src="https://challenges.cloudflare.com/turnstile/v0/api.js"
  15. async
  16. defer
  17. ></script>