$$(document).on('page:init', '.page[data-name="password_forgot"]', function(e) {

  $(document).off("click", "#password_forgot_button").on("click", "#password_forgot_button", function(e) {

  console.log('app password_forgot ready')

    e.preventDefault();

    var email = $("#emailForgot").val();

    let req = {

      email

    }

    if (email) {

      password_forgot(req);

    } else {

      app.dialog.alert("Please enter your email", "Forgot Password Errors");

    }

  });

})