"#accountPassword").val();
      confirm_password = $("#accountConfirmPassword").val();
      action = 'update_password'
      $.post("{{ url_for('api') }}/users/update_user", { id: id, action: action, password: password, confirm_password: confirm_password }, function (data) {
        console.log(data);
        if (data.error_code >= 400){
          alert(data.error);
        }
        else {
          //Send toast notification
          createToast(data.alert, 'user password')
        }

        //Sync typ