summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/authentication/change-password.html
blob: 800cd1f4d9949b6d1142bbc43e8cc722c25f2e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="author" content="Mavlushechka">
  <title>Parolni o'zgartirish</title>
  <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
  <link th:href="@{/css/login.css}" rel="stylesheet">
</head>
<body class="text-center">
<main class="form-signin">
  <form th:action="@{/authentication/update-password}" method="post">
    <img class="mb-4" src="../../static/img/student.png" th:src="@{/img/student.png}" alt="Logo" width="90" height="90">

    <h1 class="h3 mb-3 fw-normal">Parolni o'zgartirish</h1>

    <div class="alert-danger" th:if="${incorrectPassword}">
      Noto'g'ri parol.
    </div>
    <div class="alert-danger" th:if="${incorrectNewPassword}">
      Noto'g'ri yangi parol.
    </div>

    <div class="form-floating">
      <input type="password" class="form-control" id="floatingPassword" name="password" placeholder="Parol" required>
      <label for="floatingPassword">Parol</label>
    </div>
    <div class="form-floating">
      <input type="password" class="form-control" id="floatingNewPassword" name="newPassword" placeholder="Yangi parol" required>
      <label for="floatingNewPassword">Yangi parol</label>
    </div>
    <div class="form-floating">
      <input type="password" class="form-control" id="floatingNewPassword2" name="newPassword2" placeholder="Yangi parolni qayta kiriting" required>
      <label for="floatingNewPassword2">Yangi parolni qayta kiriting</label>
    </div>

    <button class="mb-3 w-100 btn btn-lg btn-primary" type="submit">O'zgartirish</button>
  </form>
</main>
</body>
</html>