mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-12 23:46:22 +00:00
Smol fix
This commit is contained in:
parent
ec9de34cb3
commit
66e7b676d9
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user