From 2a8d6b64b5a9fd8605d7a14feb07bd426db58b9e Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Thu, 3 Jan 2019 14:39:47 -0500 Subject: Alert users that ssh key is required Any users that have not uploaded an ssh key will see a message on the landing page that they need to upload one. Message is not seen by people who have already uploaded a key Change-Id: I01667e161521d801090173d47815abbeff094907 Signed-off-by: Sawyer Bergeron --- dashboard/src/templates/dashboard/landing.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dashboard') diff --git a/dashboard/src/templates/dashboard/landing.html b/dashboard/src/templates/dashboard/landing.html index b1eec86..0b468e5 100644 --- a/dashboard/src/templates/dashboard/landing.html +++ b/dashboard/src/templates/dashboard/landing.html @@ -3,6 +3,11 @@ {% block content %}
+ {% if not request.user.userprofile.ssh_public_key %} +

+ Warning: you need to upload an ssh key under account settings if you wish to log into the servers you book +

+ {% endif %}

Welcome to the Pharos Dashboard! To get started, select one of the options below:

{% csrf_token %} -- cgit 1.2.3-korg