This commit is contained in:
parent
9052ee0da3
commit
35e99c7c9f
|
|
@ -12,7 +12,7 @@ import toast from "react-hot-toast";
|
|||
import md5 from "md5";
|
||||
|
||||
|
||||
import service from '@/lib/http/service';
|
||||
import getService from '@/lib/http/service';
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export function EmailSignIn(props: {
|
||||
|
|
@ -51,6 +51,7 @@ export function EmailSignIn(props: {
|
|||
console.log(email, password, (md5(password)))
|
||||
setIsLoading(true);
|
||||
|
||||
const service = await getService();
|
||||
await service.post('/api/v1/customer/login', {
|
||||
user_name: email,
|
||||
password: md5(password),
|
||||
|
|
|
|||
Loading…
Reference in New Issue