비밀번호 변경 팝업 후 처리
This commit is contained in:
parent
7dfab6c896
commit
40d481af60
@ -72,21 +72,25 @@ export default function ChangePasswordPop(props) {
|
|||||||
chgPwd: _password1,
|
chgPwd: _password1,
|
||||||
}
|
}
|
||||||
|
|
||||||
await patch({ url: '/api/login/v1.0/user/change-password', data: param }).then((res) => {
|
await patch({ url: '/api/login/v1.0/user/change-password', data: param })
|
||||||
if (res?.result?.code === 200) {
|
.then((res) => {
|
||||||
if (res?.result?.resultCode === 'S') {
|
if (res?.result?.code === 200) {
|
||||||
alert(getMessage('main.popup.login.success'))
|
if (res?.result?.resultCode === 'S') {
|
||||||
setSessionState({ ...sessionState, pwdInitYn: 'Y' })
|
alert(getMessage('main.popup.login.success'))
|
||||||
//메인으로 이동
|
//로그인 화면으로 이동해서 다시 로그인해야되서 setSessionState필요없음
|
||||||
props.setChagePasswordPopOpen(false)
|
// setSessionState({ ...sessionState, pwdInitYn: 'Y' })
|
||||||
router.push('/login')
|
props.setChagePasswordPopOpen(false)
|
||||||
|
router.push('/login')
|
||||||
|
} else {
|
||||||
|
alert(res?.result?.resultMsg)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
alert(res?.result?.resultMsg)
|
console.log('code not 200 error')
|
||||||
}
|
}
|
||||||
} else {
|
})
|
||||||
console.log('error')
|
.catch((error) => {
|
||||||
}
|
console.log('catch::::::::', error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user