change: request method for account credential change

This commit is contained in:
Julian Krauser 2025-05-07 08:27:31 +02:00
parent fa5fb54876
commit c17355fcd1
3 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ export default defineComponent({
this.changeStatus = "loading";
this.changeError = "";
this.$http
.post(`/user/changeToPW`, {
.patch(`/user/changeToPW`, {
newpassword: await hashString(formData.new.value),
})
.then((result) => {

View file

@ -69,7 +69,7 @@ export default defineComponent({
this.verifyStatus = "loading";
this.verifyError = "";
this.$http
.post(`/user/changeToTOTP`, {
.patch(`/user/changeToTOTP`, {
otp: this.otp,
totp: formData.totp.value,
})

View file

@ -87,7 +87,7 @@ export default defineComponent({
this.changeStatus = "loading";
this.changeError = "";
this.$http
.post(`/user/changepw`, {
.patch(`/user/changepw`, {
current: await hashString(formData.current.value),
newpassword: await hashString(formData.new.value),
})