diff options
author | mavlushechka <mavlushechka@gmail.com> | 2021-11-12 21:31:54 +0500 |
---|---|---|
committer | mavlushechka <mavlushechka@gmail.com> | 2021-11-12 21:31:54 +0500 |
commit | 8d284e1690faba5c0f834a07bac81e1ee00d515f (patch) | |
tree | dd587e71f8c091c1262a84cd2c7e1dd7cd7e4226 /src/main/resources/templates/authentication/change-password.html |
Initializing
Diffstat (limited to 'src/main/resources/templates/authentication/change-password.html')
-rwxr-xr-x | src/main/resources/templates/authentication/change-password.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/main/resources/templates/authentication/change-password.html b/src/main/resources/templates/authentication/change-password.html new file mode 100755 index 0000000..800cd1f --- /dev/null +++ b/src/main/resources/templates/authentication/change-password.html @@ -0,0 +1,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> |