Commit 99c621b6 by Kang Donghun

getTokenで取得するデータ修正

parent 9b3fa578
...@@ -53,8 +53,8 @@ COMMON.displayAlert = function (msgCode, isError) { ...@@ -53,8 +53,8 @@ COMMON.displayAlert = function (msgCode, isError) {
$('#msgModel').html(I18N.i18nText(msgCode)); $('#msgModel').html(I18N.i18nText(msgCode));
$('#confirmYes').hide(); $('#confirmYes').hide();
$('#confirmNo').text(I18N.i18nText("confirmation")); $('#confirmNo').text(I18N.i18nText("confirmation"));
$('#modalTitle').text(I18N.i18nText("error"));
if (isError) { if (isError) {
$('#modalTitle').text(I18N.i18nText("error"));
} }
// $('.alert-overlay').removeClass('d-none'); // $('.alert-overlay').removeClass('d-none');
// $('.alert-area').removeClass('d-none'); // $('.alert-area').removeClass('d-none');
......
...@@ -25,7 +25,11 @@ SETTINGS.getToken = function () { ...@@ -25,7 +25,11 @@ SETTINGS.getToken = function () {
const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.PASSWORD_GET_TOKEN; const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.PASSWORD_GET_TOKEN;
COMMON.cmsAjax(url, params, false, COMMON.cmsAjax(url, params, false,
function(data) { function(data) {
$('#getToken').val(data); if (data.token) {
$('#getToken').val(data.token);
} else {
COMMON.displayAlert("token error..", true);
}
}, },
function(data) { function(data) {
if (data.errorMessage) { if (data.errorMessage) {
...@@ -106,10 +110,6 @@ SETTINGS.dspPwdUpd1_Click = function (e) { ...@@ -106,10 +110,6 @@ SETTINGS.dspPwdUpd1_Click = function (e) {
token: getToken, token: getToken,
appId: 4, appId: 4,
}; };
// if (SETTINGS.TOKEN_VALUE != getToken) {
// COMMON.displayAlert("error");
// return;
// }
const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.PASSWORD_CHANGE; const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.PASSWORD_CHANGE;
COMMON.cmsAjax(url, params, false, SETTINGS.avwCmsApi_passwordChange_success, SETTINGS.avwCmsApi_passwordChange_fail); COMMON.cmsAjax(url, params, false, SETTINGS.avwCmsApi_passwordChange_success, SETTINGS.avwCmsApi_passwordChange_fail);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment