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