로그인
This commit is contained in:
parent
c464f1ec3e
commit
7dfab6c896
@ -73,15 +73,15 @@ export default function ChangePasswordPop(props) {
|
||||
}
|
||||
|
||||
await patch({ url: '/api/login/v1.0/user/change-password', data: param }).then((res) => {
|
||||
if (res.result.code === 200) {
|
||||
if (res.result.resultCode === 'S') {
|
||||
if (res?.result?.code === 200) {
|
||||
if (res?.result?.resultCode === 'S') {
|
||||
alert(getMessage('main.popup.login.success'))
|
||||
setSessionState({ ...sessionState, pwdInitYn: 'Y' })
|
||||
//메인으로 이동
|
||||
props.setChagePasswordPopOpen(false)
|
||||
router.push('/')
|
||||
router.push('/login')
|
||||
} else {
|
||||
alert(res.result.resultMsg)
|
||||
alert(res?.result?.resultMsg)
|
||||
}
|
||||
} else {
|
||||
console.log('error')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user