Skip to content

Commit 00f1658

Browse files
committed
fix: bcrypt 임시 해제
1 parent a6c5666 commit 00f1658

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/pages/Login/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import { Link } from "react-router-dom";
1111
import PortalModal from "components/PortalModal";
1212
import { ModalHeader, ModalBody, ModalButton } from "components/PortalModal/style";
1313
import useUser from "hooks/useUser";
14-
import * as bcrypt from "bcryptjs";
15-
import { BCRYPT_SALT } from "constants/hash";
1614

1715
function Login() {
1816
const [showOnFailModal, setShowOnFailModal] = useState(false);
@@ -23,11 +21,10 @@ function Login() {
2321
// form 핸들
2422
const form = e.currentTarget;
2523
const formElements = form.elements;
26-
const hashedPassword = bcrypt.hash(formElements?.password.value, BCRYPT_SALT);
2724
try {
2825
const body = {
2926
email: formElements?.email.value,
30-
password: hashedPassword,
27+
password: formElements?.password.value,
3128
};
3229

3330
serverAxios

src/pages/Register/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ function Register() {
4949
const usernameValue = formElements?.username.value;
5050
const passwordValue = formElements?.password.value;
5151
const passwordConfirmValue = formElements?.passwordCheck.value;
52-
const hashedPassword = bcrypt.hash(passwordValue, BCRYPT_SALT);
5352

5453
try {
5554
const body = {
5655
username: usernameValue,
5756
email: emailValue,
58-
password: hashedPassword,
57+
password: passwordValue,
5958
};
6059

6160
// // 입력 각종 예외 처리

0 commit comments

Comments
 (0)