{% extends "maasserver/base.html" %} {% block title %}Login{% endblock %} {% block layout-modifiers %} modal-content login {% if no_users %} no-users {% endif %} {% endblock %} {% block head %} {% if not no_users %} {% endif %} {% endblock %} {% block content %} {% block page-title-block %} {% endblock %} {% if no_users %}

No admin user has been created yet

Use the "createadmin" administration command to create one:

{{ create_command }} createadmin
login
{% else %}

Login to {% include "maasserver/site_title.html" %}

{% if form.errors %}

Your username and password didn't match. Please try again.

{% endif %} {% comment %} We turn off autocompletion of the login form in production environments. Autocompletion, in combination with cross-site scripting attacks, can potentially allow remote attackers to steal credentials. {% endcomment %}
{% csrf_token %}
    {% for field in form %} {% include "maasserver/form_field.html" %} {% endfor %}
{% endif %}
{% endblock %}