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