index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. <template>
  2. <div class="login-wrap">
  3. <!-- <div class="login--gate" v-show="loginVisible == 'Y'">
  4. <div
  5. class="inf--gate"
  6. :class="gate1 ? 'actv' : ''"
  7. @mousemove.stop="handleInfluenceMove"
  8. >
  9. <div class="btn--contents">
  10. <h2>influence</h2>
  11. <v-btn class="loc--btn" @click.stop="location('influence')"
  12. >Discover more ></v-btn
  13. >
  14. </div>
  15. </div>
  16. <div
  17. class="ven--gate"
  18. :class="gate2 ? 'actv' : ''"
  19. @mousemove.stop="handleVendorMove"
  20. >
  21. <div class="btn--contents">
  22. <h2>vendor</h2>
  23. <v-btn class="loc--btn" @click.stop="location('vendor')">Discover more ></v-btn>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="login--cock" v-show="loginVisible == 'N'">
  28. -->
  29. <div class="login--cock">
  30. <!-- header -->
  31. <div class="login--header">
  32. <div class="login--header--l">
  33. <div class="logo">
  34. <!-- prettier-ignore -->
  35. SHOPDELI
  36. </div>
  37. </div>
  38. <div class="login--header--r"></div>
  39. </div>
  40. <!-- login -->
  41. <div class="login-box">
  42. <div class="login-l">
  43. <div class="login-l-center">
  44. <span class="logo">
  45. <!-- prettier-ignore -->
  46. SHOPDELI
  47. </span>
  48. <!-- <p>We Make Scalable Mobility Life</p> -->
  49. </div>
  50. </div>
  51. <div class="login-r">
  52. <div class="tit-login">
  53. <strong>로그인</strong>
  54. </div>
  55. <div class="login-input-wrap">
  56. <div
  57. class="txt-field-box"
  58. :class="!loginForm.validCheck.input.userId ? 'error' : ''"
  59. >
  60. <v-text-field
  61. v-model="loginForm.userId"
  62. placeholder="아이디를 입력해주세요"
  63. class="custom-input"
  64. @keyup.enter="loginAction(loginForm.userId, loginForm.passwd)"
  65. @input="setInputField('main_userId')"
  66. ></v-text-field>
  67. <i class="ico"></i>
  68. </div>
  69. <div
  70. class="txt-field-box"
  71. :class="!loginForm.validCheck.input.passwd ? 'error' : ''"
  72. >
  73. <v-text-field
  74. v-model="loginForm.passwd"
  75. :type="visible ? 'text' : 'password'"
  76. placeholder="비밀번호를 입력해주세요"
  77. class="custom-input"
  78. id="password"
  79. @keyup.enter="loginAction(loginForm.userId, loginForm.passwd)"
  80. @input="setInputField('main_passwd')"
  81. ></v-text-field>
  82. <i
  83. class="ico-eye"
  84. @click.stop="toggleVisibility"
  85. :class="visible ? 'eye-on' : 'eye-off'"
  86. ></i>
  87. <i class="ico"></i>
  88. </div>
  89. <!-- <p class="error-txt" v-if="!loginForm.validCheck.inputErrorCheck">
  90. {{ loginForm.validCheck.passwd }}
  91. </p> -->
  92. </div>
  93. <div class="login-btn-wrap">
  94. <v-btn
  95. class="custom-btn btn-blue"
  96. @keyup.enter="loginAction(loginForm.userId, loginForm.passwd)"
  97. @click="loginAction(loginForm.userId, loginForm.passwd)"
  98. >로그인</v-btn
  99. >
  100. </div>
  101. <div class="join--btn--wrap">
  102. <v-btn class="custom-btn text--btn">아이디 찾기</v-btn>
  103. <v-btn class="custom-btn text--btn">비밀번호 찾기</v-btn>
  104. <v-btn class="custom-btn text--btn" @click="location('join')">회원가입</v-btn>
  105. </div>
  106. <!-- <div class="short--login--wrap" v-if="loginForm.loginType == 'influence'"> -->
  107. <div class="short--login--wrap">
  108. <v-btn class="btn--google" @click.stop="onGoogleLogin"></v-btn>
  109. <v-btn class="btn--kakao" @click.stop="onKakaoLogin"></v-btn>
  110. <v-btn class="btn--naver" @click.stop="onNaverLogin"></v-btn>
  111. </div>
  112. </div>
  113. </div>
  114. <!-- footer -->
  115. <div class="login-footer">
  116. <div class="login--footer--l">
  117. <p>COPYRIGHT@2025 SHOPDELI INC. ALL RIGHTS RESERVED.</p>
  118. <p>마포구 합정동</p>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </template>
  124. <script setup>
  125. /************************
  126. * import
  127. ************************/
  128. //import PrivacyPop from "@/components/login/privacyPop.vue";
  129. //import AgrNPop from "@/components/terms/agreeNListPop.vue";
  130. import apiUrl from "@/composables/useApi";
  131. import QRCode from "qrcode";
  132. import { useI18n } from "vue-i18n";
  133. /************************
  134. * layout setting
  135. ************************/
  136. definePageMeta({
  137. layout: "loginlayout",
  138. });
  139. /************************
  140. * plugins inject
  141. ************************/
  142. const { $dayjs, $log, $eventBus, $toast, $userAgent } = useNuxtApp();
  143. const useStore = useDetailStore();
  144. const route = useRoute();
  145. /************************
  146. * data & created
  147. ************************/
  148. // 현재 입력 중인 필드를 설정하는 함수
  149. const setInputField = (name) => {
  150. fnValidCheck(name);
  151. };
  152. const pageId = "login";
  153. const gate1 = ref(false);
  154. const gate2 = ref(false);
  155. const loginVisible = ref("N");
  156. const i18n = useI18n();
  157. // 다국어
  158. let listObj = ref({
  159. langTypeList: {},
  160. });
  161. const handleInfluenceMove = (event) => {
  162. const el = event.currentTarget;
  163. const rect = el.getBoundingClientRect();
  164. const mouseX = event.clientX;
  165. // 요소 너비의 15%를 좌우 여백으로 계산 (중앙 70% 영역)
  166. const margin = rect.width * 0.15;
  167. const leftBound = rect.left + margin;
  168. const rightBound = rect.right - margin;
  169. if (mouseX >= leftBound && mouseX <= rightBound) {
  170. gate1.value = true;
  171. gate2.value = false;
  172. } else {
  173. gate1.value = false;
  174. }
  175. };
  176. const handleVendorMove = (event) => {
  177. const el = event.currentTarget;
  178. const rect = el.getBoundingClientRect();
  179. const mouseX = event.clientX;
  180. // 요소 너비의 15%를 좌우 여백으로 계산 (중앙 70% 영역)
  181. const margin = rect.width * 0.15;
  182. const leftBound = rect.left + margin;
  183. const rightBound = rect.right - margin;
  184. if (mouseX >= leftBound && mouseX <= rightBound) {
  185. gate2.value = true;
  186. gate1.value = false;
  187. } else {
  188. gate2.value = false;
  189. }
  190. };
  191. // 로그인 정보
  192. const loginForm = ref({
  193. userId: "",
  194. passwd: "",
  195. otpNum: "",
  196. username: "",
  197. authType: "GOOGLE",
  198. userAgent: "",
  199. loginType: "",
  200. validCheck: {
  201. input: {
  202. userId: true,
  203. passwd: true,
  204. },
  205. otp: {
  206. otpNum: true,
  207. },
  208. inputErrorCheck: true,
  209. inputValidTxt: "",
  210. otpValidTxt: "",
  211. loginValidCheck: false,
  212. btnTxt: "",
  213. btnTxtType: "",
  214. },
  215. });
  216. // 구글 OTP 1차 팝업
  217. const authPop1 = ref({
  218. popYn: false,
  219. certifyYN: false,
  220. userId: "",
  221. passwd: "",
  222. otpNum: "",
  223. validOtpKey: true,
  224. validOtpTxt: "",
  225. btnTxt: "",
  226. btnTxtType: "",
  227. applyBtn: false,
  228. succOtpYn: false,
  229. businessName: "",
  230. agreeChk1: false,
  231. agreeChk2: false,
  232. validCheck: {
  233. userId: true,
  234. passwd: true,
  235. },
  236. validTxt: "",
  237. errorCheck: false,
  238. });
  239. // 구글 OTP 2차 팝업
  240. const authPop2 = ref({
  241. popYn: false,
  242. otpNum: "",
  243. validOtpKey: true,
  244. validOtpTxt: "",
  245. errorCheck: false,
  246. });
  247. // 아이디 찾기
  248. const findId = ref({
  249. popYn: false,
  250. //tenantName: '',
  251. email: "",
  252. otpNum: "",
  253. validCheck: {
  254. input: {
  255. //tenantName: true,
  256. email: true,
  257. },
  258. otp: {
  259. otpNum: true,
  260. },
  261. inputErrorCheck: true,
  262. inputValidTxt: "",
  263. otpValidTxt: "",
  264. findIdValidCheck: false,
  265. },
  266. btnTxt: "",
  267. });
  268. // 비밀번호 초기화
  269. const resetPw = ref({
  270. popYn: false,
  271. userId: "",
  272. email: "",
  273. otpNum: "",
  274. validCheck: {
  275. input: {
  276. userId: true,
  277. email: true,
  278. },
  279. otp: {
  280. otpNum: true,
  281. },
  282. inputErrorCheck: true,
  283. inputValidTxt: "",
  284. otpValidTxt: "",
  285. resetPwValidCheck: false,
  286. },
  287. btnTxt: "",
  288. });
  289. // 초기 패스워드 변경
  290. const initPw = ref({
  291. popYn: false,
  292. passwd: "",
  293. passwd2: "",
  294. validCheck: {
  295. passwd: true,
  296. passwd2: true,
  297. },
  298. passwdCheck: false,
  299. errorTxt: "",
  300. });
  301. const selectPlaceholder = ref("");
  302. const initAuthPop1 = ref({});
  303. const initAuthPop2 = ref({});
  304. const initFindId = ref({});
  305. const initResetPw = ref({});
  306. const initInitPw = ref({});
  307. const googleOtpQrCode = ref("");
  308. const googleOtpSecretKey = ref("");
  309. const loginInfo = ref({});
  310. const checkbox = ref(false);
  311. const langType = ref("");
  312. const toggleVisibility = () => {
  313. visible.value = !visible.value;
  314. };
  315. const visible = ref(false);
  316. const isAgrNPop = ref(false);
  317. const isShowAgrNPop = ref(false);
  318. let saveId = localStorage.getItem("saveId");
  319. if (saveId) {
  320. checkbox.value = true;
  321. loginForm.value.userId = saveId;
  322. }
  323. // 개인정보처리방침 이용약관 팝업
  324. //const privacyPop = ref(false);
  325. const privacyDetail = ref({
  326. kr: {
  327. title: "",
  328. contents: "",
  329. },
  330. en: {
  331. title: "",
  332. contents: "",
  333. },
  334. });
  335. const systemInfo = ref({
  336. mode: "",
  337. });
  338. const loginAction = (__ID, __PASS) => {
  339. let _req = {
  340. id: __ID,
  341. password: __PASS,
  342. };
  343. useAxios()
  344. .post("/roulette/login", _req)
  345. .then((res) => {
  346. if (res.data) {
  347. // console.log(res.data);
  348. useAuthStore().setAuth(res.data);
  349. useAuthStore().setAccessToken(res.data.accessToken);
  350. useAuthStore().setRefreshToken(res.data.refreshToken);
  351. localStorage.setItem("tempAccess", __ID);
  352. useUtil.setPageMove("/view/item");
  353. useStore.menuInfo.menuIndex = "0";
  354. useStore.menuInfo.menuId = "menu01";
  355. useStore.menuInfo.pageRtName = "제품 관리";
  356. useStore.menuInfo.pageStatus = null;
  357. }
  358. })
  359. .catch((error) => {
  360. if (error.response) {
  361. console.log("status:", error.response.status, "data:", error.response.data);
  362. // 안전하게 errCode, message 접근
  363. const errData = error.response.data || {};
  364. const errCode = errData.errCode || errData.errorCode || errData.code || "";
  365. const errMsg = errData.message || "알 수 없는 오류가 발생했습니다.";
  366. console.log("errCode:", errCode, "message:", errMsg);
  367. } else {
  368. console.log("error:", error.message, error.code);
  369. }
  370. if (error.response?.status) {
  371. fnLoginSet(error.response.data.messages.message);
  372. }
  373. $log.debug("[login][fnIdPwCheck][error]");
  374. })
  375. .finally(() => {
  376. $log.debug("[login][fnIdPwCheck][finished]");
  377. });
  378. };
  379. const location = (__id) => {
  380. switch (__id) {
  381. case "join":
  382. useUtil.setPageMove("/auth/join?type=" + loginForm.value.loginType);
  383. break;
  384. case "findId":
  385. findId.value.popYn = true;
  386. break;
  387. case "resetPw":
  388. resetPw.value.popYn = true;
  389. break;
  390. case "influence":
  391. useUtil.setPageMove("/?type=influence");
  392. loginVisible.value = "N";
  393. break;
  394. case "vendor":
  395. useUtil.setPageMove("/?type=vendor");
  396. loginVisible.value = "N";
  397. break;
  398. default:
  399. break;
  400. }
  401. };
  402. // onMounted
  403. onMounted(() => {
  404. //로그인페이지 접근시 파라미터 체크하여 인플루언서, 밴더 구분
  405. const typeParam = route.query.type;
  406. if (typeParam == "influence") {
  407. loginForm.value.loginType = "influence";
  408. } else if (typeParam == "vendor") {
  409. loginForm.value.loginType = "vendor";
  410. } else {
  411. loginVisible.value = "Y";
  412. }
  413. //구글 인증 프로세스
  414. function handleMessage(event) {
  415. const appBaseUrl = import.meta.env.VITE_APP_BASE_URL;
  416. // 개발환경이면 아래처럼 확인
  417. const allowedOrigins = [
  418. "http://0.0.0.0:3000",
  419. "http://localhost:3000",
  420. appBaseUrl,
  421. ].filter(Boolean);
  422. if (allowedOrigins.includes(event.origin)) {
  423. const { accessToken, refreshToken, user } = event.data;
  424. if (user?.JOIN === "1") {
  425. useAuthStore().setTempData(user);
  426. useUtil.setPageMove("/auth/join");
  427. } else {
  428. //useAuthStore().setAuth(res.data);
  429. const result = {
  430. refreshToken: refreshToken,
  431. user: user,
  432. };
  433. //console.log(result);
  434. //return;
  435. useAuthStore().setTempData(result);
  436. useAuthStore().setAccessToken(accessToken);
  437. useAuthStore().setRefreshToken(refreshToken);
  438. localStorage.setItem("tempAccess", result.user);
  439. useUtil.setPageMove("/view/item");
  440. useStore.menuInfo.menuIndex = "0";
  441. useStore.menuInfo.menuId = "menu02";
  442. useStore.menuInfo.pageRtName = "이벤트 관리";
  443. useStore.menuInfo.pageStatus = null;
  444. }
  445. }
  446. }
  447. window.addEventListener("message", handleMessage);
  448. onBeforeUnmount(() => window.removeEventListener("message", handleMessage));
  449. });
  450. /*
  451. watch(
  452. () => route.query.type,
  453. (newType) => {
  454. if (newType === "influence" || newType === "vendor") {
  455. loginForm.value.loginType = newType;
  456. loginVisible.value = "N"; // 로그인 폼 보이기
  457. } else {
  458. loginVisible.value = "Y"; // 게이트 페이지 보이기
  459. }
  460. },
  461. {
  462. immediate: true, // 컴포넌트가 마운트될 때 즉시 실행
  463. }
  464. );
  465. */
  466. watchEffect(() => {
  467. // 감시하고자 하는 데이터를 해당 블럭내에서 사용하면 호출된다.
  468. // getLang.value를 감시하는 상태
  469. //QfnGetEnumCode(useLangStore().getLang);
  470. });
  471. // $eventBus.off("SET_SUCCESS_POPUP");
  472. // $eventBus.on("SET_SUCCESS_POPUP", () => {
  473. // // 안내 팝업 확인 클릭 팝업 초기화처리
  474. // fnOtpPopClose("findId");
  475. // fnOtpPopClose("resetPw");
  476. // });
  477. // $eventBus.off("PASSWD_CHANGE");
  478. // $eventBus.on("PASSWD_CHANGE", () => {
  479. // fnPasswdChange();
  480. // });
  481. // $eventBus.off("INIT_PASSWORD");
  482. // $eventBus.on("INIT_PASSWORD", () => {
  483. // initPw.value.popYn = true;
  484. // });
  485. // $eventBus.off("SET_LOGIN");
  486. // $eventBus.on("SET_LOGIN", () => {
  487. // fnLogin();
  488. // });
  489. /************************
  490. * Methods
  491. ************************/
  492. const fnLoginSet = (__MSG) => {
  493. let param = {
  494. id: pageId,
  495. title: "로그인",
  496. content: __MSG,
  497. yes: {
  498. text: "확인",
  499. isProc: true,
  500. event: "FN_LOGIN",
  501. param: "",
  502. },
  503. no: {
  504. text: "취소",
  505. isProc: false,
  506. },
  507. };
  508. $eventBus.emit("OPEN_CONFIRM_POP_UP", param);
  509. };
  510. // 구글 로그인 인증 시퀀스
  511. function onGoogleLogin() {
  512. const appBaseUrl = import.meta.env.VITE_APP_API_DOMAIN;
  513. const clientId =
  514. "373780605211-diojebh7mug45urv9rnqdil6n0b1ogge.apps.googleusercontent.com"; // 실제 클라이언트 ID로 교체
  515. //const redirectUri = "https://shopdeli.mycafe24.com/auth/callback"; // 실제 리디렉션 URI로 교체
  516. const redirectUri = `${appBaseUrl}/auth/callback`;
  517. const scope = "openid email profile";
  518. const responseType = "code"; // 또는 'code' (백엔드 연동 시)
  519. const state = Math.random().toString(36).substring(2);
  520. const googleAuthUrl = `https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&client_id=${clientId}&redirect_uri=${encodeURIComponent(
  521. redirectUri
  522. )}&response_type=${responseType}&scope=${encodeURIComponent(scope)}&state=${state}`;
  523. const width = 500;
  524. const height = 600;
  525. const dualScreenLeft =
  526. window.screenLeft !== undefined ? window.screenLeft : window.screenX;
  527. const dualScreenTop =
  528. window.screenTop !== undefined ? window.screenTop : window.screenY;
  529. const currentWidth = window.innerWidth
  530. ? window.innerWidth
  531. : document.documentElement.clientWidth
  532. ? document.documentElement.clientWidth
  533. : screen.width;
  534. const currentHeight = window.innerHeight
  535. ? window.innerHeight
  536. : document.documentElement.clientHeight
  537. ? document.documentElement.clientHeight
  538. : screen.height;
  539. const left = dualScreenLeft + (currentWidth - width) / 2;
  540. const top = dualScreenTop + (currentHeight - height) / 2;
  541. window.open(
  542. googleAuthUrl,
  543. "googleLogin",
  544. `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`
  545. );
  546. }
  547. //카카오 인증 시퀀스
  548. function onKakaoLogin() {
  549. const appBaseUrl = import.meta.env.VITE_APP_API_DOMAIN;
  550. const kakaoAuthUrl = `${appBaseUrl}/auth/kakaoLogin`; // 실제 리디렉션 URI로 교체
  551. const width = 500;
  552. const height = 600;
  553. const dualScreenLeft =
  554. window.screenLeft !== undefined ? window.screenLeft : window.screenX;
  555. const dualScreenTop =
  556. window.screenTop !== undefined ? window.screenTop : window.screenY;
  557. const currentWidth = window.innerWidth
  558. ? window.innerWidth
  559. : document.documentElement.clientWidth
  560. ? document.documentElement.clientWidth
  561. : screen.width;
  562. const currentHeight = window.innerHeight
  563. ? window.innerHeight
  564. : document.documentElement.clientHeight
  565. ? document.documentElement.clientHeight
  566. : screen.height;
  567. const left = dualScreenLeft + (currentWidth - width) / 2;
  568. const top = dualScreenTop + (currentHeight - height) / 2;
  569. window.open(
  570. kakaoAuthUrl,
  571. "kakaoLogin",
  572. `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`
  573. );
  574. }
  575. //네이버 인증 시퀀스
  576. function onNaverLogin() {
  577. const appBaseUrl = import.meta.env.VITE_APP_BASE_URL;
  578. const naverAuthUrl = `${appBaseUrl}/auth/naverLogin`; // 실제 리디렉션 URI로 교체
  579. const width = 500;
  580. const height = 600;
  581. const dualScreenLeft =
  582. window.screenLeft !== undefined ? window.screenLeft : window.screenX;
  583. const dualScreenTop =
  584. window.screenTop !== undefined ? window.screenTop : window.screenY;
  585. const currentWidth = window.innerWidth
  586. ? window.innerWidth
  587. : document.documentElement.clientWidth
  588. ? document.documentElement.clientWidth
  589. : screen.width;
  590. const currentHeight = window.innerHeight
  591. ? window.innerHeight
  592. : document.documentElement.clientHeight
  593. ? document.documentElement.clientHeight
  594. : screen.height;
  595. const left = dualScreenLeft + (currentWidth - width) / 2;
  596. const top = dualScreenTop + (currentHeight - height) / 2;
  597. window.open(
  598. naverAuthUrl,
  599. "naverLogin",
  600. `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`
  601. );
  602. }
  603. /**
  604. * @API
  605. * 최종 로그인 버튼 클릭 시 API
  606. */
  607. function fnLogin(__USERID, __USERPASS) {
  608. // 파라미터 전달 값 [아이디, 비밀번호, otpNum, 브라우저정보]
  609. //userId: loginForm.value.userId,
  610. // let _req = {
  611. // username: loginForm.value.userId,
  612. // password: btoa(loginForm.value.passwd),
  613. // };
  614. localStorage.setItem("tempAccess", __USERID);
  615. if (__USERID == "admin" && __USERPASS == "1234") {
  616. useUtil.setPageMove("/view/media/newsList");
  617. } else {
  618. fnLoginSet("비밀번호가 맞지 않습니다. 확인해주세요.");
  619. }
  620. // useAxios()
  621. // .post(apiUrl.otpCheck, _req)
  622. // .then((res) => {
  623. // loginInfo.value = res.data.data;
  624. // useAuthStore().setAccessToken(loginInfo.value.accessToken);
  625. // useAuthStore().setRefreshToken(loginInfo.value.refreshToken);
  626. // // OTP key체크 성공 후 개인정보에 대한 API를 호출 한다.
  627. // fnServiceModeCheck();
  628. // $log.debug("[login][fnLogin][success]");
  629. // })
  630. // .catch((error) => {
  631. // $log.debug("[login][fnLogin][error]");
  632. // let errorData = error.response.data;
  633. // errorData.type = "fnLogin";
  634. // fnLoginFail(errorData);
  635. // })
  636. // .finally(() => {
  637. // $log.debug("[login][fnLogin][finished]");
  638. // });
  639. }
  640. </script>