index.html 788 B

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. </head>
  7. <body>
  8. <h1>Musare!</h1>
  9. <h1>Passport/RethinkDB Example</h1>
  10. {{#user}}
  11. <img style='width: 100px; height: 100px;' src='{{ avatarUrl }}'>
  12. <p>You are logged in as <span style="font-weight: bold;">{{ login }}</span>. Account created through <span style="font-weight: bold;">{{ type }}</span>.</p>
  13. <a href='/auth/user'>See user data</a>
  14. </br>
  15. <a href='/auth/logout'>Logout</a>
  16. {{/user}}
  17. {{^user}}
  18. <p>You are not logged in.</p>
  19. <a href='/auth/login/github'>Login with GitHub</a>
  20. {{/user}}
  21. <form action="/auth/login">
  22. <input id="username" name="username" type="text">
  23. <input id="password" name="password" type="password">
  24. <button type="submit">Submit</button>
  25. </form>
  26. </body>
  27. </html>