Revert "Remove broken external domain validation"
This reverts commit 9b1b833fac.
This commit is contained in:
@@ -38,6 +38,11 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
isAccessRestrictionValid: function () {
|
||||
var tmp = $scope.appConfigure.accessRestriction;
|
||||
return !!(tmp.users.length || tmp.groups.length);
|
||||
},
|
||||
|
||||
isAltDomainValid: function () {
|
||||
if (!$scope.appConfigure.usingAltDomain) return true;
|
||||
return /.+\..+\..+/.test($scope.appConfigure.location); // 2 dots
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user