use mobile instead of email methed for mobile verification

This commit is contained in:
Zhigang Wang 2024-06-26 19:02:03 -07:00
parent 93d3e78515
commit b1272e06d1

View File

@ -1041,7 +1041,7 @@ export default {
} else { } else {
this.mobileOperation.verifyingMode = true this.mobileOperation.verifyingMode = true
this.mobileOperation.verificationCode = null this.mobileOperation.verificationCode = null
this.sendEmailVerificationCode(this.mobileOperation.mobile.number) this.sendMobileVerificationCode(this.mobileOperation.mobile.number)
} }
}, },
stopEdittingMobileVerificationCode() { stopEdittingMobileVerificationCode() {
@ -1059,7 +1059,7 @@ export default {
}, },
sendMobileVerificationCode(mobile) { sendMobileVerificationCode(mobile) {
UserProfileApi.sendEmailCode(mobile) UserProfileApi.sendMobileCode(mobile)
.then((response) => { .then((response) => {
response.data response.data
}) })