{% extends "maasserver/base.html" %} {% block title %}Login{% endblock %} {% block layout-modifiers %} modal-content login {% if no_users %} no-users {% endif %} {% endblock %} {% block extra-js %} {% if not no_users %} {% if external_auth_url %} {% else %} {% endif %} {% 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 %}

Welcome

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

{% if external_auth_url %}
{% csrf_token %}
{% else %} {% 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 %}
{% if form.errors %}

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

{% endif %}
{% endif %}
{% endif %}
{% endblock %}