[f7c05a1] | 1 | <!doctype html>
|
---|
| 2 | <html lang="en" xmln="http://www.w3.org/1999/xhtml">
|
---|
| 3 | <head>
|
---|
| 4 | <!-- Required meta tags -->
|
---|
| 5 | <meta charset="utf-8">
|
---|
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
---|
| 7 |
|
---|
| 8 | <!-- Bootstrap CSS -->
|
---|
| 9 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
|
---|
| 10 |
|
---|
| 11 | <title>Login</title>
|
---|
| 12 | </head>
|
---|
| 13 | <body>
|
---|
| 14 | <img th:src="@{../logo.png}" class="img-fluid mx-auto d-block" width="350px" height="250px" alt="Logo">
|
---|
| 15 | <div class="container mt-5">
|
---|
| 16 | <div class="row">
|
---|
| 17 | <div class="col-md-6 offset-md-3">
|
---|
| 18 | <form method="post" action="/api/login">
|
---|
| 19 | <div class="form-group">
|
---|
| 20 | <label for="username">Username</label>
|
---|
| 21 | <input type="username" class="form-control" id="username" name="username">
|
---|
| 22 | </div>
|
---|
| 23 | <div class="form-group">
|
---|
| 24 | <label for="password">Password</label>
|
---|
| 25 | <input type="password" class="form-control" id="password" name="password">
|
---|
| 26 | </div>
|
---|
| 27 | <button type="submit" class="btn btn-secondary btn-block" >Sign In</button><br>
|
---|
| 28 | <div th:if="${hasError}" class="mx-auto text-danger" style="width: 300px; text-align: center;">
|
---|
| 29 | <strong><th:block th:text="${error}"></th:block></strong>
|
---|
| 30 | </div>
|
---|
| 31 | <br>
|
---|
| 32 | </form>
|
---|
| 33 | <a href="/api/register" class="btn btn-secondary btn-block">Register here</a>
|
---|
| 34 | <a class=" btn btn-secondary btn-block" href="/home">Home</a>
|
---|
| 35 | </div>
|
---|
| 36 | </div>
|
---|
| 37 | </div>
|
---|
| 38 |
|
---|
| 39 | <!-- Optional JavaScript -->
|
---|
| 40 | <!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
---|
| 41 | <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
---|
| 42 | <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.16.6/dist/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
|
---|
| 43 | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min"></script> |
---|