| | |
| | | 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 }); |
| | | } |
| | | } |
| | | |