feat: add domain parameter to sendCode for OTP requests to include city site name

This commit is contained in:
hamed
2026-07-04 11:01:56 +03:30
parent 41f7739726
commit 97cc4fdc69
4 changed files with 106 additions and 3 deletions
+2 -1
View File
@@ -2,12 +2,13 @@ import { removeTokenHead } from "@/helper";
import api from "./api";
export const request = {
sendCode: (mobile, captcha_token) =>
sendCode: (mobile, captcha_token, domain) =>
api.post(
"api/v1/user/send-code",
{
mobile,
captcha_token,
...(domain ? { domain } : {}),
},
removeTokenHead
),