File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import { Link } from "react-router-dom";
11
11
import PortalModal from "components/PortalModal" ;
12
12
import { ModalHeader , ModalBody , ModalButton } from "components/PortalModal/style" ;
13
13
import useUser from "hooks/useUser" ;
14
- import * as bcrypt from "bcryptjs" ;
15
- import { BCRYPT_SALT } from "constants/hash" ;
16
14
17
15
function Login ( ) {
18
16
const [ showOnFailModal , setShowOnFailModal ] = useState ( false ) ;
@@ -23,11 +21,10 @@ function Login() {
23
21
// form 핸들
24
22
const form = e . currentTarget ;
25
23
const formElements = form . elements ;
26
- const hashedPassword = bcrypt . hash ( formElements ?. password . value , BCRYPT_SALT ) ;
27
24
try {
28
25
const body = {
29
26
email : formElements ?. email . value ,
30
- password : hashedPassword ,
27
+ password : formElements ?. password . value ,
31
28
} ;
32
29
33
30
serverAxios
Original file line number Diff line number Diff line change @@ -49,13 +49,12 @@ function Register() {
49
49
const usernameValue = formElements ?. username . value ;
50
50
const passwordValue = formElements ?. password . value ;
51
51
const passwordConfirmValue = formElements ?. passwordCheck . value ;
52
- const hashedPassword = bcrypt . hash ( passwordValue , BCRYPT_SALT ) ;
53
52
54
53
try {
55
54
const body = {
56
55
username : usernameValue ,
57
56
email : emailValue ,
58
- password : hashedPassword ,
57
+ password : passwordValue ,
59
58
} ;
60
59
61
60
// // 입력 각종 예외 처리
You can’t perform that action at this time.
0 commit comments