| | |
| | | import { LoginVerify } from "../models/loginVerify.model"; |
| | | import { OtpInfo } from "../models/otpInfo.model"; |
| | | import { RegisterInfo } from "../models/registerInfo"; |
| | | import CryptoJS from "crypto-js"; |
| | | |
| | | class LoginService { |
| | | /** 顧客登入-發送OTP **/ |
| | |
| | | padding: CryptoJS.pad.Pkcs7, |
| | | }); |
| | | |
| | | console.log("Encrypted Text:", encrypted.toString()); |
| | | |
| | | return http.post(`/eService/authenticate/${verificationCode}`, { ...consultantDto, password: encrypted.toString() }); |
| | | } |
| | | |
| | | |
| | | async logout(): Promise<void> { |
| | | return http.post('/logout'); |
| | | } |
| | | } |
| | | |
| | | export default new LoginService(); |