| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <% layout("/en/layout", { title: "verification" }) %>
- <%~ include("/en/partials/navbar") %>
- <% const verificationIcon = `
- <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
- <path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
- <path d="M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3m.08 4h.01" />
- </g>
- </svg>
- ` %>
- <% const errorIcon = `
- <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01" />
- </svg>
- ` %>
- <% const verifyIcon = `
- <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
- <path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
- <path d="m9 12l2 2l4-4" />
- </g>
- </svg>
- ` %>
- <h1><%~ verificationIcon %> verification</h1>
- <p>enter the code you got in your email or click on the link.</p>
- <% const errorValue = it.error?.split('.').reduce((a, b) => a[b], it.lang.auth?.errors)?.(it?.errorDetails) %>
- <% if (typeof errorValue === "string") { %>
- <div class="message error">
- <p class="messageText"><%~ errorIcon %> <%= errorValue %></p>
- </div>
- <% } %>
- <form action="/en/auth/verify">
- <input type="text" name="token" value="<%= it.token %>" style="display: none;" />
- <input type="text" pattern="\d+" minlength="6" maxlength="6" name="code" placeholder="676767" />
- <button type="submit"><%~ verifyIcon %> verify</button>
- </form>
|