function password_forgot(req) {

  app.preloader.show();

  $.ajax({

    type: "POST",

    url: base_url + 'password_forgot',

    data: req,

    success: (res) => {

      if (res.status) {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Password Forgot');

      } else {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Password Forgot Error');

      }

    }

  })

}

/*function password_forgot(req) {

  return new Promise((resolve, reject) => {

    $.ajax({

      type: "post",

      data: req,

      url: base_url + 'password_forgot',

      success: (res) => {

        //resolve(response);

        //showToast('Update Journal Successfull');

        app.dialog.alert(res.message, 'Password Reset');

      }

    })

  })

}

*/