chore: update TOTP enforcement message, policy API integration ready

This commit is contained in:
Claus Lohmar 2026-07-15 20:51:10 +01:00
parent 517c8849ec
commit 4a9d5f7ede

View file

@ -1233,10 +1233,10 @@ const settingsHTML = `<!DOCTYPE html>
const msgDiv = document.getElementById('mfa-msg'); const msgDiv = document.getElementById('mfa-msg');
if (result.totp_required && result.status === 'enforced') { if (result.totp_required && result.status === 'enforced') {
msgDiv.style.display = 'block'; msgDiv.style.display = 'block';
msgDiv.style.background = '#fff5f5'; msgDiv.style.background = '#fffbeb';
msgDiv.style.border = '1px solid #fed7d7'; msgDiv.style.border = '1px solid #fde68a';
msgDiv.style.color = '#9b2c2c'; msgDiv.style.color = '#92400e';
msgDiv.innerHTML = '<strong>🔐 Two-Factor Required:</strong> 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.innerHTML = '<strong>🔐 Two-Factor Setup Required:</strong> Please visit <a href="https://auth.nextwks.eu" style="color:#3182ce;" target="_blank">the Authelia portal</a>, 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') { } else if (result.totp_required && result.status === 'error') {
msgDiv.style.display = 'block'; msgDiv.style.display = 'block';
msgDiv.style.background = '#fff5f5'; msgDiv.style.background = '#fff5f5';