change: request method for account credential change
This commit is contained in:
parent
fa5fb54876
commit
c17355fcd1
3 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ export default defineComponent({
|
||||||
this.changeStatus = "loading";
|
this.changeStatus = "loading";
|
||||||
this.changeError = "";
|
this.changeError = "";
|
||||||
this.$http
|
this.$http
|
||||||
.post(`/user/changeToPW`, {
|
.patch(`/user/changeToPW`, {
|
||||||
newpassword: await hashString(formData.new.value),
|
newpassword: await hashString(formData.new.value),
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
|
|
@ -69,7 +69,7 @@ export default defineComponent({
|
||||||
this.verifyStatus = "loading";
|
this.verifyStatus = "loading";
|
||||||
this.verifyError = "";
|
this.verifyError = "";
|
||||||
this.$http
|
this.$http
|
||||||
.post(`/user/changeToTOTP`, {
|
.patch(`/user/changeToTOTP`, {
|
||||||
otp: this.otp,
|
otp: this.otp,
|
||||||
totp: formData.totp.value,
|
totp: formData.totp.value,
|
||||||
})
|
})
|
||||||
|
|
|
@ -87,7 +87,7 @@ export default defineComponent({
|
||||||
this.changeStatus = "loading";
|
this.changeStatus = "loading";
|
||||||
this.changeError = "";
|
this.changeError = "";
|
||||||
this.$http
|
this.$http
|
||||||
.post(`/user/changepw`, {
|
.patch(`/user/changepw`, {
|
||||||
current: await hashString(formData.current.value),
|
current: await hashString(formData.current.value),
|
||||||
newpassword: await hashString(formData.new.value),
|
newpassword: await hashString(formData.new.value),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue