diff options
| author | Pitu <[email protected]> | 2017-01-30 05:45:21 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-30 05:45:21 -0300 |
| commit | 66e7b676d9b321b132bff6fdd77ce002178f7b00 (patch) | |
| tree | 28d682f59306bece3acb57785dd190823f2fedd8 /public | |
| parent | Added changePassword (diff) | |
| download | host.fuwn.me-66e7b676d9b321b132bff6fdd77ce002178f7b00.tar.xz host.fuwn.me-66e7b676d9b321b132bff6fdd77ce002178f7b00.zip | |
Smol fix
Diffstat (limited to 'public')
| -rw-r--r-- | public/js/panel.js | 6 |
1 files changed, 3 insertions, 3 deletions
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){ |