Fixed 2 URL

This commit is contained in:
Alfonso Saavedra "Son Link" 2024-07-25 15:29:22 +02:00
parent 04cf40b6af
commit 2238fc39af
No known key found for this signature in database
GPG Key ID: D3594BCF897F74D8
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ $('#user-edit-form > form').on('submit', function(e) {
const formData = new FormData(this);
axios.post('/dashboard/update_user', formData)
axios.post(`${base_url}/dashboard/update_user`, formData)
.then( resp => {
if (resp.data) window.location.reload()
})
@ -46,7 +46,7 @@ $('#user-passwd-form > form').on('submit', function(e) {
return;
}
axios.post('/dashboard/change_passwd', formData)
axios.post(`${base_url}/dashboard/change_passwd`, formData)
.then( resp => {
if (resp.data) {
if (resp.data.ok) window.location.reload()