Skip to content

Commit

Permalink
Merge pull request #210 from GSM-MSG/feature/authSecurity
Browse files Browse the repository at this point in the history
[Common] AES 암호화 방식 삭제
  • Loading branch information
likegitman authored May 29, 2024
2 parents 6b72437 + 8745cb2 commit adc4a11
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
5 changes: 2 additions & 3 deletions shared/common/src/components/Auth/Login/LoginForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

import { TokenManager, usePostLogin } from '@bitgouel/api'
import {
encryptAES,
EmailErrorText,
EmailValue,
LoadingStateContext,
PasswordErrorText,
PasswordValue,
} from '@bitgouel/common'
import { LoginPayloadTypes } from '@bitgouel/types'
import CryptoJS from 'crypto-js'
import { useRouter } from 'next/navigation'
import { useRecoilValue, useSetRecoilState } from 'recoil'
import LoginButtons from './LoginButtons'
Expand Down Expand Up @@ -62,8 +60,9 @@ const LoginForm = () => {
const onLogin = () => {
const loginValues: LoginPayloadTypes = {
email: emailValue,
password: encryptAES(passwordValue),
password: passwordValue,
}

mutate(loginValues)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
SignUpPage2Obj,
SignUpPage3Obj,
SignUpPageNumber,
encryptAES,
schoolToConstants,
} from '@bitgouel/common'
import { SignUpCommonPayloadTypes } from '@bitgouel/types'
Expand All @@ -35,7 +34,7 @@ const SignUpButtonContainer = ({ isNext }: { isNext: boolean }) => {
email: signUpPage3Obj[1].value,
name: signUpPage2Obj[2].value,
phoneNumber: signUpPage3Obj[0].value,
password: encryptAES(signUpPage3Obj[2].value),
password: signUpPage3Obj[2].value,
highSchool: schoolToConstants[signUpPage2Obj[0].value],
clubName: signUpPage2Obj[1].value,
}
Expand Down
14 changes: 0 additions & 14 deletions shared/common/src/utils/encryptAES.ts

This file was deleted.

1 change: 0 additions & 1 deletion shared/common/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { default as handleSelect } from './handleSelect'
export { default as excelDownload } from './excelDownload'
export { default as insertHyphen } from './insertHyphen'
export { default as encryptAES } from './encryptAES'

0 comments on commit adc4a11

Please sign in to comment.