chore: update TOTP enforcement message, policy API integration ready
This commit is contained in:
parent
517c8849ec
commit
4a9d5f7ede
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
|
@ -1233,10 +1233,10 @@ const settingsHTML = `<!DOCTYPE html>
|
|||
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 = '<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.style.background = '#fffbeb';
|
||||
msgDiv.style.border = '1px solid #fde68a';
|
||||
msgDiv.style.color = '#92400e';
|
||||
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') {
|
||||
msgDiv.style.display = 'block';
|
||||
msgDiv.style.background = '#fff5f5';
|
||||
|
|
|
|||
Loading…
Reference in a new issue