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} 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 });