diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2020-04-26 19:24:57 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2020-04-26 19:24:57 +0300 |
| commit | 7e057c8a56b51bdd7e95b3919d013ac0edd481e9 (patch) | |
| tree | afaeed8947e201102b80547f5105725a6fe383ce /frontend/src/index.html | |
| parent | 449ebe5164ad9d2ba1e7d61bbae8e4101b703490 (diff) | |
Get user&pass and google auth working
Diffstat (limited to 'frontend/src/index.html')
| -rw-r--r-- | frontend/src/index.html | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/frontend/src/index.html b/frontend/src/index.html index f3e9d0e..7ffb08f 100644 --- a/frontend/src/index.html +++ b/frontend/src/index.html @@ -6,14 +6,23 @@ </head> <body> <div> - <span> - <a href="/index.html">Index</a> - <a href="/login.html">Login</a> - <a id="logout" href="">Logout</a> - </span> + <button id="logout">Logout</button> + </div> + <div> + <form id="loginForm"> + <label>Username + <input type="text" name="username" id="username"> + </label> + <label>Password + <input type="password" name="password" id="password"> + </label> + <button role="submit">Log in</button> + </form> + <button id="google-login">Login with Google</button> </div> <button id="fetchTodosBtn">Fetch TODOs</button> <div id="todos"></div> <script src="./main.js"></script> + <script src="https://apis.google.com/js/platform.js?onload=gapiInit" async defer></script> </body> </html>
\ No newline at end of file |
