[5577566] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:sec="http://www.w3.org/1999/xhtml">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8"/>
|
---|
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"/>
|
---|
| 6 | <title>Login</title>
|
---|
| 7 | <!-- Bootstrap core CSS -->
|
---|
| 8 | <link href="css/bootstrap.min.css" rel="stylesheet"/>
|
---|
| 9 | <link href="css/login.css" rel="stylesheet"/>
|
---|
| 10 | <meta name="theme-color" content="#7952b3"/>
|
---|
| 11 | </head>
|
---|
| 12 | <body class="text-center">
|
---|
| 13 | <header th:replace="common/navbar :: navbar"></header>
|
---|
| 14 | <main class="form-signin">
|
---|
| 15 | <form th:action="@{/login}" method="post">
|
---|
| 16 | <h1 class="h3 mb-3 fw-normal">Please sign in</h1>
|
---|
| 17 |
|
---|
| 18 | <div class="form-floating">
|
---|
| 19 | <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com" name="username" required>
|
---|
| 20 | <label for="floatingInput">Email address</label>
|
---|
| 21 | </div>
|
---|
| 22 | <div class="form-floating">
|
---|
| 23 | <input type="password" class="form-control" id="floatingPassword" placeholder="Password" name="password" required>
|
---|
| 24 | <label for="floatingPassword">Password</label>
|
---|
| 25 | </div>
|
---|
| 26 |
|
---|
| 27 | <button class="w-100 btn btn-lg btn-primary" type="submit">Sign in</button>
|
---|
| 28 | </form>
|
---|
[6fa3d09] | 29 | <a th:href="@{/oauth2/authorization/google}" class="btn btn-warning" style="width:200px; margin-top:20px;">Continue with Google</a>
|
---|
| 30 | <a th:href="@{/oauth2/authorization/facebook}" class="btn btn-info"style="width:200px; margin-top:20px;">Continue with Facebook</a>
|
---|
[5577566] | 31 | <p th:if="${param.error != null}" class="text-danger">Incorrect username or password</p>
|
---|
| 32 | <p th:if="${successValidation}" class="text-success">Account validated</p>
|
---|
| 33 | <p th:if="${error}" class="text-danger">Account token expired or does not exist</p>
|
---|
| 34 | </main>
|
---|
| 35 | <script src="/js/bootstrap.min.js"></script>
|
---|
| 36 | </body>
|
---|
| 37 | </html> |
---|