

250613 김혜민 컬럼변경 오류 수정
@c0e2863e013f3991a57dab6f8c80433c22f3f236
--- client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
+++ client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
... | ... | @@ -47,12 +47,12 @@ |
47 | 47 |
<div class="form-group"> |
48 | 48 |
<div class="check-area"> |
49 | 49 |
<div class="form-check"> |
50 |
- <input type="radio" id="storageModeL" class="mr5" value="L" v-model="strgMth" |
|
50 |
+ <input type="radio" id="storageModeL" class="mr5" value="L" v-model="strgMode" |
|
51 | 51 |
@change="saveByStorageMode" /> |
52 | 52 |
<label for="storageModeL">LOCAL 방식</label> |
53 | 53 |
</div> |
54 | 54 |
<div class="form-check"> |
55 |
- <input type="radio" id="storageModeS" class="mr5" value="S" v-model="strgMth" |
|
55 |
+ <input type="radio" id="storageModeS" class="mr5" value="S" v-model="strgMode" |
|
56 | 56 |
@change="saveByStorageMode" /> |
57 | 57 |
<label for="storageModeS">SESSION 방식</label> |
58 | 58 |
</div> |
--- client/views/pages/login/Login.vue
+++ client/views/pages/login/Login.vue
... | ... | @@ -250,7 +250,6 @@ |
250 | 250 |
async handleOAuthCallback() { |
251 | 251 |
const { error, errorMessage, oauthSuccess, lgnMth } = this.parseOAuthParams(); |
252 | 252 |
|
253 |
- console.log('OAuth 콜백 처리:', { error, errorMessage, oauthSuccess, lgnMth }); |
|
254 | 253 |
|
255 | 254 |
if (error) { |
256 | 255 |
this.handleOAuthError(error, errorMessage); |
... | ... | @@ -258,7 +257,6 @@ |
258 | 257 |
} |
259 | 258 |
|
260 | 259 |
if (oauthSuccess !== 'true' && oauthSuccess !== true) { |
261 |
- console.log('OAuth 성공 파라미터 없음, 처리 건너뜀'); |
|
262 | 260 |
return; |
263 | 261 |
} |
264 | 262 |
|
... | ... | @@ -268,7 +266,6 @@ |
268 | 266 |
// 기존 시스템 로그인 모드 따라가기 |
269 | 267 |
const finalLoginMode = loginMode || this.$store.state.loginMode || localStorage.getItem('loginMode') || 'J'; |
270 | 268 |
|
271 |
- console.log('최종 로그인 모드:', finalLoginMode); |
|
272 | 269 |
this.$store.commit("setLoginMode", finalLoginMode); |
273 | 270 |
|
274 | 271 |
if (finalLoginMode === 'J') { |
... | ... | @@ -282,7 +279,6 @@ |
282 | 279 |
await this.handleLoginSuccess(); |
283 | 280 |
|
284 | 281 |
} catch (error) { |
285 |
- console.error('OAuth 처리 중 오류:', error); |
|
286 | 282 |
this.handleOAuthError('processing_error', error.message); |
287 | 283 |
} |
288 | 284 |
}, |
... | ... | @@ -301,15 +297,12 @@ |
301 | 297 |
|
302 | 298 |
async handleOAuthJWT() { |
303 | 299 |
try { |
304 |
- console.log('OAuth JWT 모드 처리 시작'); |
|
305 | 300 |
|
306 | 301 |
// 여러 방법으로 토큰 찾기 |
307 | 302 |
const token = this.getCookie('Authorization') |
308 | 303 |
|| this.getCookie('refresh') |
309 | 304 |
|| localStorage.getItem('authorization') |
310 | 305 |
|| sessionStorage.getItem('authorization'); |
311 |
- |
|
312 |
- console.log('찾은 토큰:', token ? '있음' : '없음'); |
|
313 | 306 |
|
314 | 307 |
const headers = { |
315 | 308 |
'Content-Type': 'application/json', |
... | ... | @@ -326,11 +319,9 @@ |
326 | 319 |
credentials: 'include' |
327 | 320 |
}); |
328 | 321 |
|
329 |
- console.log('OAuth 사용자 정보 응답 상태:', response.status); |
|
330 | 322 |
|
331 | 323 |
if (response.status === 200) { |
332 | 324 |
const result = await response.json(); |
333 |
- console.log('OAuth 사용자 정보:', result); |
|
334 | 325 |
|
335 | 326 |
if (result.success || result.data) { |
336 | 327 |
const userInfo = result.data; |
... | ... | @@ -343,7 +334,6 @@ |
343 | 334 |
userInfo.roles; |
344 | 335 |
|
345 | 336 |
this.setAuthInfo("J", finalToken, { ...userInfo, roles }); |
346 |
- console.log('JWT 인증 정보 설정 완료'); |
|
347 | 337 |
|
348 | 338 |
} else { |
349 | 339 |
throw new Error('서버에서 실패 응답'); |
... | ... | @@ -360,7 +350,6 @@ |
360 | 350 |
|
361 | 351 |
async handleOAuthSession() { |
362 | 352 |
try { |
363 |
- console.log('OAuth 세션 모드 처리 시작'); |
|
364 | 353 |
|
365 | 354 |
const userInfoRes = await fetch('/oauth2/getUserInfo.json', { |
366 | 355 |
method: 'POST', |
... | ... | @@ -371,14 +360,12 @@ |
371 | 360 |
} |
372 | 361 |
}); |
373 | 362 |
|
374 |
- console.log('세션 사용자 정보 응답 상태:', userInfoRes.status); |
|
375 | 363 |
|
376 | 364 |
if (!userInfoRes || userInfoRes.status !== 200) { |
377 | 365 |
throw new Error('세션 정보를 가져올 수 없습니다.'); |
378 | 366 |
} |
379 | 367 |
|
380 | 368 |
const result = await userInfoRes.json(); |
381 |
- console.log('세션 사용자 정보:', result); |
|
382 | 369 |
|
383 | 370 |
const userInfo = result.data; |
384 | 371 |
const roles = Array.isArray(userInfo.roles) ? |
... | ... | @@ -386,18 +373,14 @@ |
386 | 373 |
userInfo.roles; |
387 | 374 |
|
388 | 375 |
this.setAuthInfo('S', null, { ...userInfo, roles }); |
389 |
- console.log('세션 인증 정보 설정 완료'); |
|
390 | 376 |
|
391 | 377 |
} catch (error) { |
392 |
- console.error('OAuth 세션 처리 실패:', error); |
|
393 | 378 |
throw error; |
394 | 379 |
} |
395 | 380 |
}, |
396 | 381 |
|
397 | 382 |
// ========== 공통 처리 ========== |
398 | 383 |
setAuthInfo(loginMode, token, userInfo) { |
399 |
- console.log('인증 정보 설정:', { loginMode, userInfo: userInfo.mbrId }); |
|
400 |
- |
|
401 | 384 |
// Store 설정 |
402 | 385 |
try { |
403 | 386 |
if (typeof this.$store !== 'undefined' && this.$store.commit) { |
... | ... | @@ -406,7 +389,6 @@ |
406 | 389 |
this.$store.commit("setMbrId", userInfo.mbrId); |
407 | 390 |
this.$store.commit("setMbrNm", userInfo.mbrNm); |
408 | 391 |
this.$store.commit("setRoles", userInfo.roles); |
409 |
- console.log('Vuex 스토어 설정 완료'); |
|
410 | 392 |
} |
411 | 393 |
} catch (e) { |
412 | 394 |
console.warn("store 설정 실패:", e); |
... | ... | @@ -414,12 +396,9 @@ |
414 | 396 |
}, |
415 | 397 |
|
416 | 398 |
async handleLoginSuccess() { |
417 |
- console.log('로그인 성공 후 처리 시작'); |
|
418 | 399 |
|
419 | 400 |
const isAdmin = this.$store.state.roles.some(role => role.authority === "ROLE_ADMIN"); |
420 | 401 |
let redirectUrl = this.restoreRedirect("redirect") || sessionStorage.getItem('oauth_redirect'); |
421 |
- |
|
422 |
- console.log('관리자 여부:', isAdmin, '리다이렉트 URL:', redirectUrl); |
|
423 | 402 |
|
424 | 403 |
if (redirectUrl && this.shouldRedirectToMain(redirectUrl)) { |
425 | 404 |
redirectUrl = this.$filters.ctxPath("/"); |
... | ... | @@ -431,7 +410,6 @@ |
431 | 410 |
|
432 | 411 |
const targetPath = this.getValidRedirectPath(redirectUrl, isAdmin); |
433 | 412 |
|
434 |
- console.log('최종 이동 경로:', targetPath); |
|
435 | 413 |
|
436 | 414 |
await this.$nextTick(); |
437 | 415 |
this.$router.push({ path: targetPath }); |
... | ... | @@ -475,7 +453,6 @@ |
475 | 453 |
}, |
476 | 454 |
|
477 | 455 |
cleanupOAuth() { |
478 |
- console.log('OAuth 정리 작업'); |
|
479 | 456 |
|
480 | 457 |
sessionStorage.removeItem('oauth_redirect'); |
481 | 458 |
sessionStorage.removeItem('oauth_provider'); |
... | ... | @@ -493,7 +470,6 @@ |
493 | 470 |
const parts = value.split(`; ${name}=`); |
494 | 471 |
if (parts.length === 2) { |
495 | 472 |
const cookieValue = parts.pop().split(';').shift(); |
496 |
- console.log(`쿠키 ${name}:`, cookieValue ? '있음' : '없음'); |
|
497 | 473 |
return cookieValue; |
498 | 474 |
} |
499 | 475 |
return null; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?