Merge pull request #192 from Kaliscuit/main [skip ci]

fix: change password 404 error
This commit is contained in:
Wesley Liddick
2025-08-06 10:29:35 +08:00
committed by GitHub

View File

@@ -381,7 +381,7 @@ const changePassword = async () => {
changePasswordLoading.value = true changePasswordLoading.value = true
try { try {
const data = await apiClient.post('/admin/change-password', { const data = await apiClient.post('/web/auth/change-password', {
currentPassword: changePasswordForm.currentPassword, currentPassword: changePasswordForm.currentPassword,
newPassword: changePasswordForm.newPassword, newPassword: changePasswordForm.newPassword,
newUsername: changePasswordForm.newUsername || undefined newUsername: changePasswordForm.newUsername || undefined