保誠-保戶業務員媒合平台
Tomas
2023-08-08 4e86a748719097a92220b223f86ae98f45032a41
PAMapp/shared/services/login.service.ts
@@ -1,6 +1,7 @@
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";
@@ -84,7 +85,8 @@
  /** 顧問登入 **/
  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 });
  }
}