index.vue 20 KB

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