From 87506b84e3c9bdb02534a27f779096e25bfaded2 Mon Sep 17 00:00:00 2001 From: Leon Koth Date: Fri, 23 May 2025 11:29:00 +0200 Subject: [PATCH] feat: support special chars like "+" in username parameter of /api/get-email-and-phone API (#3824) --- web/src/auth/AuthBackend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/auth/AuthBackend.js b/web/src/auth/AuthBackend.js index e10d8fa5..a62a737c 100644 --- a/web/src/auth/AuthBackend.js +++ b/web/src/auth/AuthBackend.js @@ -37,7 +37,7 @@ export function signup(values) { } export function getEmailAndPhone(organization, username) { - return fetch(`${authConfig.serverUrl}/api/get-email-and-phone?organization=${organization}&username=${username}`, { + return fetch(`${authConfig.serverUrl}/api/get-email-and-phone?organization=${organization}&username=${encodeURIComponent(username)}`, { method: "GET", credentials: "include", headers: {