+ パスワード再設定 +
+ ++ 現在のパスワードと新しいパスワードを入力し、 + 「確定」ボタンを押してください。 +
+ ++ (※)は必須項目です。 +
+ ++ パスワード再設定入力 +
+ + + + ++ +
-
+
- ✓ 8文字以上16文字以下 +
- ✓ 1つ以上の小文字を使用 +
- ✓ 1つ以上の大文字を使用 +
- ✓ 1つ以上の数字を使用 +
- ✓ 1つ以上の記号を使用 +
diff --git a/src/main/java/com/example/demo/controller/PasswordChangeController.java b/src/main/java/com/example/demo/controller/PasswordChangeController.java new file mode 100644 index 0000000..55894b2 --- /dev/null +++ b/src/main/java/com/example/demo/controller/PasswordChangeController.java @@ -0,0 +1,14 @@ +package com.example.demo.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; + +@Controller +public class PasswordChangeController { + + @GetMapping("/passwordChange") + public String showPasswordChange() { + + return "passwordChange"; + } +} \ No newline at end of file diff --git a/src/main/resources/static/js/passwordChange.js b/src/main/resources/static/js/passwordChange.js new file mode 100644 index 0000000..a53327c --- /dev/null +++ b/src/main/resources/static/js/passwordChange.js @@ -0,0 +1,62 @@ +function togglePassword(id) { + + const input = document.getElementById(id); + + if (input === null) { + return; + } + + if (input.type === "password") { + input.type = "text"; + } else { + input.type = "password"; + } +} + + +function clearForm() { + + const form = document.getElementById("pwForm"); + + if (form === null) { + return; + } + + form.reset(); +} + + + +function showCompletedPopup() { + + const completedDialog = document.getElementById("completedDialog"); + + if (completedDialog === null) { + return; + } + + completedDialog.showModal(); +} + +function goTopMenu() { + + const topMenuUrl = document.body.dataset.topmenuUrl; + + if (topMenuUrl) { + window.location.href = topMenuUrl; + return; + } + + window.location.href = "/topmenu"; +} + +function goLogin(){ + const loginUrl = document.body.dataset.loginUrl; + + if (loginUrl){ + window.location.href = loginUrl; + return; + } + + window.location.href="/login" +} \ No newline at end of file diff --git a/src/main/resources/templates/passwordChange.html b/src/main/resources/templates/passwordChange.html new file mode 100644 index 0000000..93e54ab --- /dev/null +++ b/src/main/resources/templates/passwordChange.html @@ -0,0 +1,377 @@ + + + +
+ ++ 現在のパスワードと新しいパスワードを入力し、 + 「確定」ボタンを押してください。 +
+ ++ (※)は必須項目です。 +
+ +
+ 初期パスワードを
変更します。
+