mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 18:45:56 +08:00
fix: encode email in loginPrecheck API (#3171)
This commit is contained in:
parent
8f1451e154
commit
7822b4efee
@ -9,9 +9,9 @@ const loginPrecheck = async (
|
|||||||
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => {
|
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(
|
const response = await axios.get(
|
||||||
`/loginPrecheck?email=${props.email}&ref=${encodeURIComponent(
|
`/loginPrecheck?email=${encodeURIComponent(
|
||||||
window.location.href,
|
props.email,
|
||||||
)}`,
|
)}&ref=${encodeURIComponent(window.location.href)}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -6,6 +6,6 @@ export interface PayloadProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
email?: string;
|
email: string;
|
||||||
path?: string;
|
path?: string;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user