| | |
| | | "@nuxtjs/style-resources": "^1.2.1", |
| | | "@types/swiper": "^5.4.3", |
| | | "core-js": "^3.18.3", |
| | | "crypto-js": "^4.1.1", |
| | | "element-ui": "^2.15.6", |
| | | "lodash": "^4.17.21", |
| | | "nuxt": "^2.15.8", |
| | |
| | | import { http } from "./httpClient"; |
| | | import { AxiosResponse } from 'axios'; |
| | | import _ from "lodash"; |
| | | import AES from 'crypto-js/aes'; |
| | | |
| | | import { ConsultantLoginInfo } from "../models/ConsultantLoginInfo"; |
| | | import { LoginRequest } from "../models/loginRequest.model"; |
| | |
| | | |
| | | /** 顧問登入 **/ |
| | | logInToConsultant(consultantDto:ConsultantLoginInfo, verificationCode: string):Promise<AxiosResponse<LoginSuccessToken>>{ |
| | | return http.post(`/eService/authenticate/${verificationCode}`,consultantDto); |
| | | const encryptPassword = AES.encrypt(consultantDto.password, 'PAM KEY').toString(); |
| | | return http.post(`/eService/authenticate/${verificationCode}`, { ...consultantDto, password: encryptPassword }); |
| | | } |
| | | } |
| | | |