From 771d28edfed415c3c9ec868aae26dbb9ef34c42b Mon Sep 17 00:00:00 2001 From: h-hirane Date: Fri, 18 Sep 2026 17:00:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[add]=20=E3=83=88=E3=83=83=E3=83=97?= =?UTF-8?q?=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=AEhtml=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=80=81=E3=83=91=E3=82=B9=E3=83=AF=E3=83=BC?= =?UTF-8?q?=E3=83=89=E5=A4=89=E6=9B=B4=E3=81=AE=E3=83=9A=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=81=A8controller=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PasswordChangeController.java | 14 + .../resources/static/js/passwordChange.js | 62 +++ .../resources/templates/passwordChange.html | 377 ++++++++++++++++++ src/main/resources/templates/topmenu.html | 10 + 4 files changed, 463 insertions(+) create mode 100644 src/main/java/com/example/demo/controller/PasswordChangeController.java create mode 100644 src/main/resources/static/js/passwordChange.js create mode 100644 src/main/resources/templates/passwordChange.html 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 @@ + + + + + + ShareBooks|パスワード変更 + + + + + +
+ +
+ ShareBooks +
+ +
+ + + 🔔 + 3 + + + + テストユーザー(一般) + + + + +
+
+ +
+ + + + + +
+ + + + +

+ パスワード再設定 +

+ +

+ 現在のパスワードと新しいパスワードを入力し、 + 「確定」ボタンを押してください。 +

+ +

+ (※)は必須項目です。 +

+ +
+ + +
+ +
+ +

+ パスワード再設定入力 +

+ + +
+ + +
+ + + +
+ + + + + +
+
+ + +
+ + + +
+ + + + + +
+ +

+ ※ 半角英数字・記号を含む8文字以上16文字以下で入力してください。 +

+ +
+ + +
+ + + +
+ + + + + +
+ +

+ ※ 確認のため、もう一度新しいパスワードを入力してください。 +

+ +
+ +
+ +
+ + +
+ +
+ 注意事項 +
+ +
+ + +
+ + + +
+ + + + + + +
+
+ +
+ + +
+ +
+ +
+ パスワードの制約 +
+ +
+ 使用可能文字 +
+ +
+ 半角英数字・記号 +
+ +
+ +
+ 制約 +
+ +
    +
  • ✓ 8文字以上16文字以下
  • +
  • ✓ 1つ以上の小文字を使用
  • +
  • ✓ 1つ以上の大文字を使用
  • +
  • ✓ 1つ以上の数字を使用
  • +
  • ✓ 1つ以上の記号を使用
  • +
+ +
+ +
+ 設定例 +
+ +
+ Abcdef12! +
+ +
+ (9文字、英字大小・数字・記号を含む) +
+ +
+ +
+
+ +
+
+ +
+ + + + + +

+ 変更完了 +

+ +

+ パスワードの変更が完了しました。 +

+ + + +
+ + + + + \ No newline at end of file diff --git a/src/main/resources/templates/topmenu.html b/src/main/resources/templates/topmenu.html index 4549f80..83c566d 100644 --- a/src/main/resources/templates/topmenu.html +++ b/src/main/resources/templates/topmenu.html @@ -70,6 +70,16 @@ 寄贈申請の
受信一覧を確認します。

+ +
+ + +

パスワード変更

+ +

+ 初期パスワードを
変更します。 +

+
\ No newline at end of file From 47fb36b066e90d7d8e98c368cc87dbfe80b94dd7 Mon Sep 17 00:00:00 2001 From: h-hirane Date: Fri, 18 Sep 2026 18:37:14 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[edit]=20=E3=83=88=E3=83=83=E3=83=97?= =?UTF-8?q?=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=8B=E3=82=89=E3=83=91?= =?UTF-8?q?=E3=82=B9=E3=83=AF=E3=83=BC=E3=83=89=E5=A4=89=E6=9B=B4=E7=94=BB?= =?UTF-8?q?=E9=9D=A2=E3=81=AB=E9=81=B7=E7=A7=BB=E3=81=99=E3=82=8B=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/topmenu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/templates/topmenu.html b/src/main/resources/templates/topmenu.html index 83c566d..4fc97dc 100644 --- a/src/main/resources/templates/topmenu.html +++ b/src/main/resources/templates/topmenu.html @@ -73,7 +73,7 @@
- +

パスワード変更