验证码修改
This commit is contained in:
@@ -320,7 +320,7 @@ const handleSendSmsCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendSmsCode(forgotForm.phone);
|
||||
const result = await authApi.sendSmsCode(forgotForm.phone, 'reset');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
forgotForm.smsSessionId = result.data.sessionId;
|
||||
@@ -354,7 +354,7 @@ const handleSendEmailCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendEmailCode(forgotForm.email);
|
||||
const result = await authApi.sendEmailCode(forgotForm.email, 'reset');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
forgotForm.emailSessionId = result.data.sessionId;
|
||||
|
||||
@@ -319,7 +319,7 @@ const handleSendSmsCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendSmsCode(forgotForm.phone);
|
||||
const result = await authApi.sendSmsCode(forgotForm.phone, 'reset');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
forgotForm.smsSessionId = result.data.sessionId;
|
||||
@@ -353,7 +353,7 @@ const handleSendEmailCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendEmailCode(forgotForm.email);
|
||||
const result = await authApi.sendEmailCode(forgotForm.email, 'reset');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
forgotForm.emailSessionId = result.data.sessionId;
|
||||
|
||||
@@ -358,7 +358,7 @@ const handleSendSmsCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendSmsCode(loginForm.phone);
|
||||
const result = await authApi.sendSmsCode(loginForm.phone, 'login');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
loginForm.captchaId = result.data.sessionId;
|
||||
@@ -396,7 +396,7 @@ const handleSendEmailCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendEmailCode(loginForm.email);
|
||||
const result = await authApi.sendEmailCode(loginForm.email, 'login');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
loginForm.captchaId = result.data.sessionId;
|
||||
|
||||
@@ -358,7 +358,7 @@ const handleSendSmsCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendSmsCode(loginForm.phone);
|
||||
const result = await authApi.sendSmsCode(loginForm.phone, 'login');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
loginForm.captchaId = result.data.sessionId;
|
||||
@@ -396,7 +396,7 @@ const handleSendEmailCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendEmailCode(loginForm.email);
|
||||
const result = await authApi.sendEmailCode(loginForm.email, 'login');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
loginForm.captchaId = result.data.sessionId;
|
||||
|
||||
@@ -387,7 +387,7 @@ const handleSendSmsCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendSmsCode(registerForm.phone!);
|
||||
const result = await authApi.sendSmsCode(registerForm.phone!, 'register');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
registerForm.smsSessionId = result.data.sessionId;
|
||||
@@ -421,7 +421,7 @@ const handleSendEmailCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendEmailCode(registerForm.email!);
|
||||
const result = await authApi.sendEmailCode(registerForm.email!, 'register');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
registerForm.emailSessionId = result.data.sessionId;
|
||||
|
||||
@@ -398,7 +398,7 @@ const handleSendSmsCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendSmsCode(registerForm.phone!);
|
||||
const result = await authApi.sendSmsCode(registerForm.phone!, 'register');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
registerForm.smsSessionId = result.data.sessionId;
|
||||
@@ -432,7 +432,7 @@ const handleSendEmailCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendEmailCode(registerForm.email!);
|
||||
const result = await authApi.sendEmailCode(registerForm.email!, 'register');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
registerForm.emailSessionId = result.data.sessionId;
|
||||
|
||||
Reference in New Issue
Block a user