dm: 등록시 비번 해쉬처리

This commit is contained in:
2026-07-14 14:50:54 +09:00
parent fe4a4a420e
commit b336651503
3 changed files with 64 additions and 19 deletions
@@ -5,6 +5,7 @@
import { useEffect, useMemo, useRef, useState, type ReactNode, type RefObject } from "react";
import { useRouter } from "next/navigation";
import { sha512 } from "js-sha512";
import SubPageHeader from "@/components/SubPageHeader";
import PostcodeModal from "@/components/PostcodeModal";
import type { AddrItem } from "@/app/store/sdmMng/postcode-service";
@@ -424,7 +425,7 @@ export default function DemandPlaceRegisterPage() {
};
if (password) {
payload.dmdAplyPswd = password;
payload.dmdAplyPswd = sha512.hex(password);
}
try {
+4 -1
View File
@@ -6,7 +6,9 @@
"dev": "next dev -p 3015",
"build": "next build",
"start:dm": "next start -p 3015",
"lint": "next lint"
"lint": "next lint",
"test:e2e": "playwright test",
"test:e2e:headed": "playwright test --headed"
},
"dependencies": {
"@common/assets": "workspace:*",
@@ -27,6 +29,7 @@
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@playwright/test": "^1.61.1",
"@types/webpack": "^5.28.5",
"eslint": "^9",
"eslint-config-next": "15.3.8",
+58 -17
View File
@@ -94,7 +94,7 @@ importers:
version: 1.11.20
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
react-hook-form:
specifier: ^7.54.2
version: 7.72.0(react@19.2.4)
@@ -185,7 +185,7 @@ importers:
version: 0.474.0(react@19.2.4)
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
react-hook-form:
specifier: ^7.54.2
version: 7.72.0(react@19.2.4)
@@ -204,13 +204,13 @@ importers:
version: 3.0.6
eslint:
specifier: ^9.0.0
version: 9.39.4(jiti@1.21.7)
version: 9.39.4(jiti@2.6.1)
eslint-config-next:
specifier: 15.3.8
version: 15.3.8(eslint@9.39.4(jiti@1.21.7))(typescript@5.9.3)
version: 15.3.8(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
eslint-plugin-react-hooks:
specifier: ^5.0.0
version: 5.2.0(eslint@9.39.4(jiti@1.21.7))
version: 5.2.0(eslint@9.39.4(jiti@2.6.1))
postcss:
specifier: ^8.4.49
version: 8.5.8
@@ -318,7 +318,7 @@ importers:
version: 0.474.0(react@19.2.4)
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
next-qrcode:
specifier: ^2.5.1
version: 2.5.1(react@19.2.4)
@@ -448,7 +448,7 @@ importers:
version: 3.0.5
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
next-themes:
specifier: ^0.4.6
version: 0.4.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
@@ -599,7 +599,7 @@ importers:
version: 0.474.0(react@19.2.4)
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
next-qrcode:
specifier: ^2.5.1
version: 2.5.1(react@19.2.4)
@@ -717,7 +717,7 @@ importers:
version: 0.474.0(react@19.2.4)
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
picocolors:
specifier: ^1.1.1
version: 1.1.1
@@ -817,7 +817,7 @@ importers:
version: 0.474.0(react@19.2.4)
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
react-hook-form:
specifier: ^7.54.2
version: 7.72.0(react@19.2.4)
@@ -837,15 +837,18 @@ importers:
'@eslint/eslintrc':
specifier: ^3
version: 3.3.5
'@playwright/test':
specifier: ^1.61.1
version: 1.61.1
'@types/webpack':
specifier: ^5.28.5
version: 5.28.5
eslint:
specifier: ^9
version: 9.39.4(jiti@2.6.1)
version: 9.39.4(jiti@1.21.7)
eslint-config-next:
specifier: 15.3.8
version: 15.3.8(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)
version: 15.3.8(eslint@9.39.4(jiti@1.21.7))(typescript@5.9.3)
postcss:
specifier: ^8
version: 8.5.8
@@ -902,7 +905,7 @@ importers:
version: 3.0.5
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
ol:
specifier: ^7.3.0
version: 7.5.2
@@ -1008,7 +1011,7 @@ importers:
version: 2.30.1
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
ol:
specifier: ^7.3.0
version: 7.5.2
@@ -1198,7 +1201,7 @@ importers:
version: 0.474.0(react@19.2.4)
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
next-qrcode:
specifier: ^2.5.1
version: 2.5.1(react@19.2.4)
@@ -1346,7 +1349,7 @@ importers:
version: 2.30.1
next:
specifier: 15.5.18
version: 15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
version: 15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
ol:
specifier: ^7.3.0
version: 7.5.2
@@ -2936,6 +2939,11 @@ packages:
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
'@playwright/test@1.61.1':
resolution: {integrity: sha512-8nKv6+0RJSL9FE4jYOEGXnPeM/Hg12qZpmqzZjRh3qM0Y7c3z1mrOTfFLids72RDQYVh9WpLEfR5WdpNX4fkig==}
engines: {node: '>=18'}
hasBin: true
'@radix-ui/number@1.1.1':
resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}
@@ -5356,6 +5364,11 @@ packages:
react-dom:
optional: true
fsevents@2.3.2:
resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
fsevents@2.3.3:
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
@@ -6309,6 +6322,16 @@ packages:
resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==}
engines: {node: '>= 6'}
playwright-core@1.61.1:
resolution: {integrity: sha512-h7Qlt6m4REp25qvIdvbDtVmD4LqVXfpRxhORv9L0jzETM05p4fuPJ3dKyuSXQxDSbXnmS79HAgi9589lGSpLkg==}
engines: {node: '>=18'}
hasBin: true
playwright@1.61.1:
resolution: {integrity: sha512-DWnY5o3YbLWK4GovuAVwpqL+1VwGNdUGrRr++8j8PtQQzvAVZUIMjKQ90fY689sEJZJBbZVw1rXaOKSTitkzPQ==}
engines: {node: '>=18'}
hasBin: true
pluralize@8.0.0:
resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}
engines: {node: '>=4'}
@@ -7175,6 +7198,7 @@ packages:
tsconfck@3.1.6:
resolution: {integrity: sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==}
engines: {node: ^18 || >=20}
deprecated: unmaintained
hasBin: true
peerDependencies:
typescript: ^5.0.0
@@ -7359,6 +7383,7 @@ packages:
uuid@9.0.1:
resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}
deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
hasBin: true
victory-vendor@36.9.2:
@@ -8441,6 +8466,10 @@ snapshots:
'@pkgjs/parseargs@0.11.0':
optional: true
'@playwright/test@1.61.1':
dependencies:
playwright: 1.61.1
'@radix-ui/number@1.1.1': {}
'@radix-ui/primitive@1.1.3': {}
@@ -11393,6 +11422,9 @@ snapshots:
react: 19.2.4
react-dom: 19.2.4(react@19.2.4)
fsevents@2.3.2:
optional: true
fsevents@2.3.3:
optional: true
@@ -12082,7 +12114,7 @@ snapshots:
react: 19.2.4
react-dom: 19.2.4(react@19.2.4)
next@15.5.18(react-dom@19.2.4(react@19.2.4))(react@19.2.4):
next@15.5.18(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4):
dependencies:
'@next/env': 15.5.18
'@swc/helpers': 0.5.15
@@ -12100,6 +12132,7 @@ snapshots:
'@next/swc-linux-x64-musl': 15.5.18
'@next/swc-win32-arm64-msvc': 15.5.18
'@next/swc-win32-x64-msvc': 15.5.18
'@playwright/test': 1.61.1
sharp: 0.34.5
transitivePeerDependencies:
- '@babel/core'
@@ -12283,6 +12316,14 @@ snapshots:
pirates@4.0.7: {}
playwright-core@1.61.1: {}
playwright@1.61.1:
dependencies:
playwright-core: 1.61.1
optionalDependencies:
fsevents: 2.3.2
pluralize@8.0.0: {}
pngjs@5.0.0: {}