diff --git a/accounts/templates/profile.html b/accounts/templates/profile.html index 3d15393..28503ff 100644 --- a/accounts/templates/profile.html +++ b/accounts/templates/profile.html @@ -41,6 +41,7 @@ + {% if SHOW_PROFILE_EDIT_PASSWORD %}
{% csrf_token %}
@@ -67,6 +68,7 @@
+ {% endif %} {% if publickeys %}
@@ -112,4 +114,4 @@
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/instances/templates/instance.html b/instances/templates/instance.html index 1880681..5a43dcd 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -227,16 +227,20 @@ {% trans "Console" %} + {% if SHOW_ACCESS_ROOT_PASSWORD %}
  • {% trans "Root Password" %}
  • + {% endif %} + {% if SHOW_ACCESS_SSH_KEYS %}
  • {% trans "SSH Keys" %}
  • + {% endif %}
    @@ -249,6 +253,7 @@ {% endifequal %}
    + {% if SHOW_ACCESS_ROOT_PASSWORD %}

    {% trans "You need shut down your instance and enter a new root password." %}

    {% csrf_token %} @@ -265,6 +270,8 @@
    + {% endif %} + {% if SHOW_ACCESS_SSH_KEYS %}

    {% trans "You need shut down your instance and choose your public key." %}

    {% csrf_token %} @@ -289,6 +296,7 @@
    + {% endif %} diff --git a/webvirtcloud/settings.py b/webvirtcloud/settings.py index f78a02b..724fb1a 100644 --- a/webvirtcloud/settings.py +++ b/webvirtcloud/settings.py @@ -121,3 +121,6 @@ CLONE_INSTANCE_DEFAULT_PREFIX = 'ourea' LOGS_PER_PAGE = 100 QUOTA_DEBUG = True ALLOW_EMPTY_PASSWORD = True +SHOW_ACCESS_ROOT_PASSWORD = False +SHOW_ACCESS_SSH_KEYS = False +SHOW_PROFILE_EDIT_PASSWORD = False