From 4a9d5f7ede66ec550180887dbb042468d0d3d6cb Mon Sep 17 00:00:00 2001 From: cclohmar Date: Wed, 15 Jul 2026 20:51:10 +0100 Subject: [PATCH] chore: update TOTP enforcement message, policy API integration ready --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 9d94b16..746c7fb 100644 --- a/main.go +++ b/main.go @@ -1233,10 +1233,10 @@ const settingsHTML = ` const msgDiv = document.getElementById('mfa-msg'); if (result.totp_required && result.status === 'enforced') { msgDiv.style.display = 'block'; - msgDiv.style.background = '#fff5f5'; - msgDiv.style.border = '1px solid #fed7d7'; - msgDiv.style.color = '#9b2c2c'; - msgDiv.innerHTML = '🔐 Two-Factor Required: On your next login, you will be prompted to set up an authenticator app (Google Authenticator, Authy, etc.). This is required after adding a work email.'; + msgDiv.style.background = '#fffbeb'; + msgDiv.style.border = '1px solid #fde68a'; + msgDiv.style.color = '#92400e'; + msgDiv.innerHTML = '🔐 Two-Factor Setup Required: Please visit the Authelia portal, log in, and set up an authenticator app (Google Authenticator, Authy, etc.) under Security → Two-Factor. This is required after adding a work email.'; } else if (result.totp_required && result.status === 'error') { msgDiv.style.display = 'block'; msgDiv.style.background = '#fff5f5';