Using the example code provided by Flask-Security, I can access the login_user.html form from the /login route normally and that works just fine. However, I would like to embed the login form on all my site's pages in the upper left. I thought I could use a Jinja {% include "security/login_user.html" %} statement to place the form in base.html, but that doesn't seem to work. I get the following error:
jinja2.exceptions.UndefinedError: 'login_user_form' is undefined
Is there a way to include or embed the login form inside another template and still get access to the respective form object?