From 66e7b676d9b321b132bff6fdd77ce002178f7b00 Mon Sep 17 00:00:00 2001 From: Pitu Date: Mon, 30 Jan 2017 05:45:21 -0300 Subject: Smol fix --- public/js/panel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'public/js') diff --git a/public/js/panel.js b/public/js/panel.js index a231f21..ac53f35 100644 --- a/public/js/panel.js +++ b/public/js/panel.js @@ -544,14 +544,14 @@ panel.changePassword = function(){ panel.page.appendChild(container); document.getElementById('sendChangePassword').addEventListener('click', function(){ - panel.sendNewPassword(); + panel.sendNewPassword(document.getElementById('password').value); }); } -panel.sendNewPassword = function(){ +panel.sendNewPassword = function(pass){ - axios.post('/api/password/change') + axios.post('/api/password/change', {password: pass}) .then(function (response) { if(response.data.success === false){ -- cgit v1.2.3