code: def forgot_password(self):
          
          form = self._get_form('SECURITY_FORGOT_PASSWORD_FORM')
          if form.validate_on_submit():
              self.security_service.send_reset_password_instructions(form.user)
              self.flash(_('flask_unchained.bundles.security:flash.password_reset_request',
                           email=form.user.email),
                         category='info')
              if request.is_json:
                  return '', HTTPStatus.NO_CONTENT
  
          elif form.errors and request.is_json:
              return self.errors(form.errors)
  
          return self.render('forgot_password',
                             forgot_password_form=form,
                             **self.security.run_ctx_processor('forgot_password'))
docs: View function to request a password recovery email with a reset token.
          Supports html and json requests.