| <div> |
| <% if (user) { %> |
| <p>You are logged in</p> |
| |
| <% if (auth && auth.minecraft) { %> |
| <p>Already Linked MC</p> |
| <p>MC username = <%= auth.minecraft %></p> |
| |
| <% } else { %> |
| <p>No Minecraft Added</p> |
| <form action="/auth" method="GET`"> |
| <label for="minecraft">Enter your Minecraft username:</label><br /> |
| <input |
| type="text" |
| id="minecraft" |
| name="minecraft" |
| pattern="^[a-zA-Z0-9_]{2,16}$" |
| title="Please enter a valid Minecraft username (2-16 characters, only letters, numbers, and underscores)" |
| required |
| /> |
| <input type="submit" value="Link Minecraft" /> |
| </form> |
| <% } %> |
| |
| <!-- If not ask them for their minecraft username --> |
| <% } else { %> |
| <h2>Welcome to the TransGG Minecraft Server!</h2> |
| <p> |
| To join our Minecraft server, you must first become a member of one of our |
| partnered Minecraft communities and get verified. If you're not already part |
| of a community, you can join one below. Otherwise, if you're already |
| verified, please log in below: |
| </p> |
| <a href="/login">Login</a> |
| |
| <% } %> |
| </div> |