code: def send_login():
      
  
      form_class = _security.passwordless_login_form
  
      if request.is_json:
          form = form_class(MultiDict(request.get_json()))
      else:
          form = form_class()
  
      if form.validate_on_submit():
          send_login_instructions(form.user)
          if not request.is_json:
              do_flash(*get_message('LOGIN_EMAIL_SENT', email=form.user.email))
  
      if request.is_json:
          return _render_json(form)
  
      return _security.render_template(config_value('SEND_LOGIN_TEMPLATE'),
                                       send_login_form=form,
                                       **_ctx('send_login'))
docs: View function that sends login instructions for passwordless login