fix: encode email in loginPrecheck API (#3171)

This commit is contained in:
Vishal Sharma 2023-07-18 18:12:56 +05:30 committed by GitHub
parent 8f1451e154
commit 7822b4efee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -6,6 +6,6 @@ export interface PayloadProps {
} }
export interface Props { export interface Props {
email?: string; email: string;
path?: string; path?: string;
} }