function account_edit(req) {

  app.preloader.show();

  $.ajax({

    type: "post",

    url: base_url + 'account_edit',

    data: req,

    success: (res) => {

      if (res.status) {

        localStorage.setItem('t01_user', JSON.stringify({

          uuid: res.user.data.uuid,

          email: res.user.data.email,

          sess_token: res.user.data.token,

          data: res.user.data

        }))

        app.preloader.hide();

        showToast('Update Account Successfully');

      } else {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Edit Account Error');

      }

    }

  })

}