The user new password
The user current password
Error if passwords are not strings or are empty, if new password is not valid or if newPassword's:
// change the password to warl3pE with a current password, grl83n5
JMap.User.changePassword("warl3pE", "grl83n5")
.then(() => console.info("Password changed successfully"))
.catch(error => console.error(error))
JMap.User.changePassword
Change the user password on JMap server