mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 04:26:02 +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> => {
|
||||
try {
|
||||
const response = await axios.get(
|
||||
`/loginPrecheck?email=${props.email}&ref=${encodeURIComponent(
|
||||
window.location.href,
|
||||
)}`,
|
||||
`/loginPrecheck?email=${encodeURIComponent(
|
||||
props.email,
|
||||
)}&ref=${encodeURIComponent(window.location.href)}`,
|
||||
);
|
||||
|
||||
return {
|
||||
|
@ -6,6 +6,6 @@ export interface PayloadProps {
|
||||
}
|
||||
|
||||
export interface Props {
|
||||
email?: string;
|
||||
email: string;
|
||||
path?: string;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user