로그인 임시 처리(계정 하드코딩)
This commit is contained in:
parent
58ca9945b0
commit
66671847b4
@ -37,22 +37,41 @@ export default function Login(props) {
|
||||
pwd: formData.get('password'),
|
||||
}
|
||||
|
||||
await post({ url: '/api/login/v1.0/login', data: param }).then((res) => {
|
||||
if (res) {
|
||||
if (res.result.resultCode == 'S') {
|
||||
// console.log('res.data', res.data)
|
||||
// 비밀번호 초기화가 필요한 경우
|
||||
// if (res.data.pwdInitYn != 'Y') {
|
||||
// alert('비밀번호 초기화가 필요한 경우')
|
||||
// } else {
|
||||
setSession(res.data)
|
||||
redirect('/')
|
||||
// }
|
||||
} else {
|
||||
alert(res.result.resultMsg)
|
||||
}
|
||||
}
|
||||
// await post({ url: '/api/login/v1.0/login', data: param }).then((res) => {
|
||||
// if (res) {
|
||||
// if (res.result.resultCode == 'S') {
|
||||
// // console.log('res.data', res.data)
|
||||
// // 비밀번호 초기화가 필요한 경우
|
||||
// // if (res.data.pwdInitYn != 'Y') {
|
||||
// // alert('비밀번호 초기화가 필요한 경우')
|
||||
// // } else {
|
||||
// setSession(res.data)
|
||||
// redirect('/')
|
||||
// // }
|
||||
// } else {
|
||||
// alert(res.result.resultMsg)
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
// 임시 로그인 처리
|
||||
setSession({
|
||||
userId: 'NEW016610',
|
||||
saleStoreId: null,
|
||||
name: null,
|
||||
mail: null,
|
||||
tel: null,
|
||||
storeId: 'TEMP02',
|
||||
userNm: 'ㅇㅇ6610',
|
||||
userNmKana: '신규사용자 16610',
|
||||
category: '인상6610',
|
||||
telNo: '336610',
|
||||
fax: null,
|
||||
email: 't10t@naver.com',
|
||||
pwdInitYn: 'N',
|
||||
})
|
||||
redirect('/')
|
||||
// 임시 로그인 처리 끝
|
||||
}
|
||||
|
||||
// 비밀번호 초기화 관련
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user