{% extends "maasserver/base.html" %} {% block ng-app %}data-ng-app="MAAS"{% endblock %} {% block title %}Login{% endblock %} {% block layout-modifiers %} modal-content login {% if no_users and not external_auth_url %} no-users {% endif %} {% endblock %} {% block content %} {% block page-title-block %} {% endblock %}
{% if no_users and not external_auth_url %}

No admin user has been created yet

Use the "init" administration command to create one:

{{ create_command }} init
{% else %}

Welcome

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

{% if external_auth_url %} {% 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 %}