feat: add domain parameter to sendCode for OTP requests to include city site name
This commit is contained in:
@@ -24,7 +24,7 @@ function LogInPage({ setIsSendMsg, num, setNum, setUuid, matchedCity, setStep })
|
||||
const handleReq = async () => {
|
||||
setLoading(true);
|
||||
request
|
||||
.sendCode(num, "")
|
||||
.sendCode(num, "", typeof window !== "undefined" ? window.location.hostname : "")
|
||||
.then((response) => {
|
||||
setLoading(false);
|
||||
if (response.uuid) {
|
||||
|
||||
@@ -49,7 +49,7 @@ function Recode({ retryIcon, timer, setUuid, num, setTimer }) {
|
||||
rotateIcon();
|
||||
}, 1200);
|
||||
request
|
||||
.sendCode(changeNumToDefault(num), "")
|
||||
.sendCode(changeNumToDefault(num), "", typeof window !== "undefined" ? window.location.hostname : "")
|
||||
.then((response) => {
|
||||
clearInterval(animIntervalRef.current);
|
||||
animIntervalRef.current = null;
|
||||
|
||||
Reference in New Issue
Block a user