code: def forgot_password_view(self):
          
  
          # Initialize form
          form = self.ForgotPasswordFormClass(request.form)
  
          # Process valid POST
          if request.method == 'POST' and form.validate():
              # Get User and UserEmail by email
              email = form.email.data
              user, user_email = self.db_manager.get_user_and_user_email_by_email(email)
  
              if user and user_email:
                  # Send reset_password email
                  self.email_manager.send_reset_password_email(user, user_email)
  
                  # Send forgot_password signal
                  signals.user_forgot_password.send(current_app._get_current_object(), user=user)
  
              # Flash a system message
              flash(_(
                  "A reset password email has been sent to '%(email)s'. Open that email and follow the instructions to reset your password.",
                  email=email), 'success')
  
              # Redirect to the login page
              return redirect(self._endpoint_url(self.USER_AFTER_FORGOT_PASSWORD_ENDPOINT))
  
          # Render form
          self.prepare_domain_translations()
          return render_template(self.USER_FORGOT_PASSWORD_TEMPLATE, form=form)
docs: Prompt for email and send reset password email.