mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
feat: support special chars like "+" in username parameter of /api/get-email-and-phone API (#3824)
This commit is contained in:
@ -37,7 +37,7 @@ export function signup(values) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getEmailAndPhone(organization, username) {
|
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",
|
method: "GET",
|
||||||
credentials: "include",
|
credentials: "include",
|
||||||
headers: {
|
headers: {
|
||||||
|
Reference in New Issue
Block a user