12345678910111213141516171819202122232425262728 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Title</title>
- </head>
- <body>
- <h1>Musare!</h1>
- <h1>Passport/RethinkDB Example</h1>
- {{#user}}
- <img style='width: 100px; height: 100px;' src='{{ avatarUrl }}'>
- <p>You are logged in as <span style="font-weight: bold;">{{ login }}</span>. Account created through <span style="font-weight: bold;">{{ type }}</span>.</p>
- <a href='/auth/user'>See user data</a>
- </br>
- <a href='/auth/logout'>Logout</a>
- {{/user}}
- {{^user}}
- <p>You are not logged in.</p>
- <a href='/auth/login/github'>Login with GitHub</a>
- {{/user}}
- <form action="/auth/login">
- <input id="username" name="username" type="text">
- <input id="password" name="password" type="password">
- <button type="submit">Submit</button>
- </form>
- </body>
- </html>
|