Browse Source

modal 오타 수정

pull/2/head
junh_eee 2 years ago
parent
commit
aa5010a8b2
  1. 4
      src/components/account/mypage/AccountMypagePwForm.js
  2. 4
      src/components/account/register/AccountRegisterForm.js
  3. 4
      src/modules/account/login/sagas/authSaga.ts

4
src/components/account/mypage/AccountMypagePwForm.js

@ -17,10 +17,10 @@ import { useHistory } from 'react-router-dom';
const SignupSchema = yup.object().shape({
userPswd: yup
.string()
.required('비밀번호를 입력주세요.'),
.required('비밀번호를 입력주세요.'),
newPswd: yup
.string()
.required('비밀번호를 입력주세요.')
.required('비밀번호를 입력주세요.')
.matches(
/^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[@$!%*#?&])[A-Za-z0-9@$!%*#?&]{8,20}$/,
'8 자 이상, 20 자 미만 영문자/숫자/특수문자(@$!%*#?&) 조합하여 입력해 주세요.'),

4
src/components/account/register/AccountRegisterForm.js

@ -162,7 +162,7 @@ export const AccountRegisterForm = ({
clncd: yup.string().required('국가번호를 선택해 주세요.'),
userPswd: yup
.string()
.required('비밀번호를 입력주세요.')
.required('비밀번호를 입력주세요.')
.matches(
/^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[@$!%*#?&])[A-Za-z0-9@$!%*#?&]{8,20}$/,
'8 자 이상, 20 자 미만 영문자/숫자/특수문자(@$!%*#?&) 조합하여 입력해 주세요.'
@ -218,7 +218,7 @@ export const AccountRegisterForm = ({
setModal({
isOpen: true,
title: '회원가입 실패',
desc: '동일한 아이디가 존재 합니다. 다른 아이디로 가입 신청을 해주세요'
desc: '동일한 아이디가 존재합니다. 다른 아이디로 가입 신청해 주세요'
});
return;
}

4
src/modules/account/login/sagas/authSaga.ts

@ -31,11 +31,11 @@ function* userLoginSaga(action: ActionType<typeof Actions.login.request>) {
//console.log('>>>>>11>>>>>>>', data);
if (errorCode == '-101') {
throw '계정 정보가 찾을수 없습니다. 다시 확인해주세요.';
throw '계정 정보를 찾을 수 없습니다. 다시 확인해 주세요.';
} else if (errorCode == '-102') {
throw '비밀번호가 잘못되었습니다. 다시 확인해 주세요.';
} else if (errorCode == '-103') {
throw '계정 정보가 사용할수 없습 상태입니다. 다시 확인해주세요.';
throw '계정 정보가 사용할 수 없는 상태입니다. 다시 확인해 주세요.';
}
// access_token 세팅
cookieStorage.setCookie(COOKIE_ACCESS_TOKEN, data.accessToken);

Loading…
Cancel
Save