Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: encode email in loginPrecheck API (#3171)

Vishal Sharma7822b4efee7a
diff --git a/frontend/src/api/user/loginPrecheck.ts b/frontend/src/api/user/loginPrecheck.ts
index 934c101f0e..c0cdc3dcc4 100644
--- a/frontend/src/api/user/loginPrecheck.ts
+++ b/frontend/src/api/user/loginPrecheck.ts
@@ -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 {
diff --git a/frontend/src/types/api/user/loginPrecheck.ts b/frontend/src/types/api/user/loginPrecheck.ts
index d2bd8772db..fed34eacec 100644
--- a/frontend/src/types/api/user/loginPrecheck.ts
+++ b/frontend/src/types/api/user/loginPrecheck.ts
@@ -6,6 +6,6 @@ export interface PayloadProps {
}
export interface Props {
- email?: string;
+ email: string;
path?: string;
}