Commit 99c621b6 by Kang Donghun

getTokenで取得するデータ修正

parent 9b3fa578
......@@ -53,8 +53,8 @@ COMMON.displayAlert = function (msgCode, isError) {
$('#msgModel').html(I18N.i18nText(msgCode));
$('#confirmYes').hide();
$('#confirmNo').text(I18N.i18nText("confirmation"));
$('#modalTitle').text(I18N.i18nText("error"));
if (isError) {
$('#modalTitle').text(I18N.i18nText("error"));
}
// $('.alert-overlay').removeClass('d-none');
// $('.alert-area').removeClass('d-none');
......
......@@ -25,7 +25,11 @@ SETTINGS.getToken = function () {
const url = COMMON.format(ClientData.conf_checkApiUrl(), ClientData.userInfo_accountPath()) + CONSTANT.URL.CMS.API.PASSWORD_GET_TOKEN;
COMMON.cmsAjax(url, params, false,
function(data) {
$('#getToken').val(data);
if (data.token) {
$('#getToken').val(data.token);
} else {
COMMON.displayAlert("token error..", true);
}
},
function(data) {
if (data.errorMessage) {
......@@ -106,10 +110,6 @@ SETTINGS.dspPwdUpd1_Click = function (e) {
token: getToken,
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;
COMMON.cmsAjax(url, params, false, SETTINGS.avwCmsApi_passwordChange_success, SETTINGS.avwCmsApi_passwordChange_fail);
} 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