mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 12:50:29 +08:00
feat: fix bug that send code type will be "phone" when logged-in via autofill (#4164)
This commit is contained in:
@@ -125,6 +125,10 @@ export function setPassword(userOwner, userName, oldPassword, newPassword, code
|
||||
}
|
||||
|
||||
export function sendCode(captchaType, captchaToken, clientSecret, method, countryCode = "", dest, type, applicationId, checkUser = "") {
|
||||
if (Setting.isValidEmail(dest) && type !== "email") {
|
||||
type = "email";
|
||||
}
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append("captchaType", captchaType);
|
||||
formData.append("captchaToken", captchaToken);
|
||||
|
Reference in New Issue
Block a user