directoryserver: cloudflare warning

This commit is contained in:
Girish Ramakrishnan
2024-01-29 23:37:16 +01:00
parent 00bbb4242d
commit d2b303ffd6
5 changed files with 33 additions and 14 deletions

View File

@@ -25,6 +25,7 @@ angular.module('Application').controller('UserSettingsController', ['$scope', '$
$scope.ready = false;
$scope.config = Client.getConfig();
$scope.userInfo = Client.getUserInfo();
$scope.adminDomain = null;
$scope.oidcClients = [];
$scope.profileConfig = {
@@ -410,6 +411,11 @@ angular.module('Application').controller('UserSettingsController', ['$scope', '$
$scope.profileConfig.refresh();
$scope.userDirectoryConfig.refresh();
$scope.refreshOIDCClients();
Client.getDomains(function (error, result) {
if (error) return console.error('Unable to list domains.', error);
$scope.adminDomain = result.filter(function (d) { return d.domain === $scope.config.adminDomain; })[0];
});
});
// setup all the dialog focus handling