Clear exposed ldap errors correctly

This commit is contained in:
Johannes Zellner
2021-12-10 17:10:10 +01:00
parent d524118759
commit c775e8ae05
2 changed files with 3 additions and 3 deletions

View File

@@ -692,7 +692,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.exposedLdapConfig = {
enabled: false,
allowlist: '',
errorMessage: '',
error: '',
refresh: function () {
Client.getExposedLdapConfig(function (error, result) {
@@ -714,7 +714,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
};
Client.setExposedLdapConfig(data, function (error) {
if (error) $scope.exposedLdapConfig.errorMessage = error.message;
if (error) $scope.exposedLdapConfig.error = error.message;
$scope.exposedLdapConfig.success = true;