From b08855526812da66ddf8f8f81d556449515d3c44 Mon Sep 17 00:00:00 2001 From: chaeseungyun Date: Fri, 21 Jun 2024 15:45:19 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=EB=B9=84=EB=B0=80=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20sha256=EC=9C=BC=EB=A1=9C=20=ED=95=B4=EC=8B=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Auth/components/Common/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/page/Auth/components/Common/index.tsx b/src/page/Auth/components/Common/index.tsx index 3cb69fe0..b2a1d821 100644 --- a/src/page/Auth/components/Common/index.tsx +++ b/src/page/Auth/components/Common/index.tsx @@ -13,12 +13,13 @@ import sha256 from 'utils/ts/SHA-256'; import Done from '../Done/index'; import styles from './index.module.scss'; -const setNewPassword = ( +const setNewPassword = async ( phone_number: string, password: string, setError: UseFormSetError, ) => { - changePassword({ phone_number, password }) + const hashPassword = await sha256(password); + changePassword({ phone_number, password: hashPassword }) .catch((e) => { if (isKoinError(e)) { setError('password', { type: 'custom', message: e.message }); From 022f446650102da42e2d49774e9df58e92e33fe3 Mon Sep 17 00:00:00 2001 From: chaeseungyun Date: Fri, 21 Jun 2024 15:52:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EC=95=84=EC=9D=B4=EB=94=94=20?= =?UTF-8?q?=EC=B0=BE=EA=B8=B0=20=EC=88=A8=EA=B8=B0=EA=B8=B0=20=EB=B0=8F=20?= =?UTF-8?q?=EB=9D=BC=EC=9A=B0=ED=8C=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 +- src/page/Auth/Login/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e5c7f820..e8c238d8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -75,9 +75,9 @@ function App() { } /> }> } /> - } /> } /> + } /> diff --git a/src/page/Auth/Login/index.tsx b/src/page/Auth/Login/index.tsx index a6e1a846..ab3e4f27 100644 --- a/src/page/Auth/Login/index.tsx +++ b/src/page/Auth/Login/index.tsx @@ -125,7 +125,7 @@ export default function Login() { {OPTION[1].name} ) - : OPTION.map((option) => ( + : OPTION.filter((option) => option.name !== '아이디 찾기').map((option) => ( {option.name}