diff --git a/app-code/account/index.php b/app-code/account/index.php
index cfd67a2..be9b820 100644
--- a/app-code/account/index.php
+++ b/app-code/account/index.php
@@ -75,6 +75,9 @@ if (!isset($_SESSION["logged_in"]) || $_SESSION["logged_in"] !== true) {
+
These external domains have been approved to receive your login data. You can revoke access at any time.
+
+
No external domains approved yet.
+
@@ -734,6 +742,53 @@ function generate2FAQRCode(issuer, accountName, secret) {
}
});
}
+
+ function loadConfirmedDomains() {
+ fetch('/api/account/manage_domains.php')
+ .then(r => r.json())
+ .then(data => {
+ const list = document.getElementById('confirmedDomainsList');
+ const noMsg = document.getElementById('noDomainsMessage');
+ list.innerHTML = '';
+ if (!data.domains || data.domains.length === 0) {
+ noMsg.style.display = 'block';
+ return;
+ }
+ noMsg.style.display = 'none';
+ data.domains.forEach(d => {
+ const item = document.createElement('div');
+ item.className = 'list-group-item d-flex justify-content-between align-items-center';
+ item.innerHTML = '