diff --git a/portal/connect_api.py b/portal/connect_api.py index 4b73075..cf66f66 100644 --- a/portal/connect_api.py +++ b/portal/connect_api.py @@ -338,6 +338,8 @@ def domain_name_edgecase(): domain_name = "cms.ci-connect.net" elif "af" in domain_name: domain_name = "af.uchicago.edu" + elif "test" in domain_name: + domain_name = "www-test.ci-connect.net" elif "uchicago" in domain_name: domain_name = "psdconnect.uchicago.edu" elif "snowmass21" in domain_name: diff --git a/portal/static/img/www-test-logo.png b/portal/static/img/www-test-logo.png new file mode 100644 index 0000000..a07bda1 Binary files /dev/null and b/portal/static/img/www-test-logo.png differ diff --git a/portal/templates/base.html b/portal/templates/base.html index ab25e5a..faad480 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -7,7 +7,7 @@ - + {# Favicons for Connect #} diff --git a/portal/templates/home.html b/portal/templates/home.html index a0d8910..8adceb9 100644 --- a/portal/templates/home.html +++ b/portal/templates/home.html @@ -81,6 +81,8 @@
document.getElementById("home-brand").src="{{url_for('static', filename='img/spt-logo.jpg')}}"; } else if(String(hostname).includes('af.uchicago')){ document.getElementById("home-brand").src="{{url_for('static', filename='img/atlas-af-logo.png')}}"; +} else if(String(hostname).includes('test')){ + document.getElementById("home-brand").src="{{url_for('static', filename='img/www-test-logo.png')}}"; } else if(String(hostname).includes('snowmass21')){ document.getElementById("home-brand").src="{{url_for('static', filename='img/snowmass-connect-logo.png')}}"; } else if(String(hostname).includes('psdconnect') || String(hostname).includes('uchicago')){ diff --git a/portal/templates/profile.html b/portal/templates/profile.html index f5161ba..81761c1 100644 --- a/portal/templates/profile.html +++ b/portal/templates/profile.html @@ -105,8 +105,53 @@

Profile

- + + {% if profile['totp_secret'] %} +
+
+
+
+
+
+
+ Multi-Factor Authentication +
+
+
+ +
+ +
+
    +
  1. Download the Google Authenticator application: + +
  2. +
  3. Click the "+" icon in the lower righthand corner, and click "Scan a QR Code"
  4. +
  5. Scan the following QR code:
  6. +
    +
  7. Once the QR code has been scanned, the app will start to generate six digit security tokens. You will need to enter this token when logging in
  8. +
+
+
+
+
+
+
+
+
+
+ + {% endif %} diff --git a/portal/templates/profile_create.html b/portal/templates/profile_create.html index 16ddf6a..47273df 100644 --- a/portal/templates/profile_create.html +++ b/portal/templates/profile_create.html @@ -15,7 +15,7 @@

Create Profile

-

Globus ID: {{session['primary_identity']}}

+ Globus ID: {{session['primary_identity']}}

* = required field


@@ -38,8 +38,7 @@

Globus ID: {{session['primary_identity']}}

- -

Please use POSIX unix convention

+ Globus ID: {{session['primary_identity']}} maxlength="32" pattern="^[a-z][-a-z0-9]*$" > + Usernames must start with a lowercase letter. All other characters may be lowercase letters, numbers, or hyphens.
@@ -85,7 +85,7 @@

Globus ID: {{session['primary_identity']}}

- + Globus ID: {{session['primary_identity']}} required="required" tabindex="5" > + Please use an institutional email address
diff --git a/portal/templates/profile_edit.html b/portal/templates/profile_edit.html index a27fa78..d8b6a6b 100644 --- a/portal/templates/profile_edit.html +++ b/portal/templates/profile_edit.html @@ -15,8 +15,8 @@

Edit Profile

-
Unix Username: {{session['unix_name']}}
-
User Globus ID: {{session['primary_identity']}}
+ UNIX Username: {{session['unix_name']}} +
Globus ID: {{session['primary_identity']}}

* = required field


@@ -66,7 +66,7 @@
User Globus ID: {{session['primary_identity']}}
- + User Globus ID: {{session['primary_identity']}} required="required" tabindex="4" > + Please use an institutional email address
@@ -91,6 +92,16 @@
User Globus ID: {{session['primary_identity']}}
>
+
+ + + {% if profile['totp_secret'] %} + This will delete your current MFA secret and generate a new one + {% else %} + Enabling MFA will add an additional layer of security for SSH connections + {% endif %} +

+