mirror of https://github.com/portainer/portainer
fix(auth): fix oauh enabled function
parent
15b6941872
commit
81e3ace232
|
@ -317,7 +317,7 @@
|
||||||
<!-- !group-search-settings -->
|
<!-- !group-search-settings -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<oauth-settings ng-if="settings.AuthenticationMethod === 3" settings="OAuthSettings"></oauth-settings>
|
<oauth-settings ng-if="isOauthEnabled()" settings="OAuthSettings"></oauth-settings>
|
||||||
|
|
||||||
<!-- actions -->
|
<!-- actions -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -15,7 +15,7 @@ function ($q, $scope, Notifications, SettingsService, FileUploadService) {
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.isOauthEnabled = function isOauthEnabled() {
|
$scope.isOauthEnabled = function isOauthEnabled() {
|
||||||
return $scope.settings.AuthenticationMethod === 3;
|
return $scope.settings && $scope.settings.AuthenticationMethod === 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.addSearchConfiguration = function() {
|
$scope.addSearchConfiguration = function() {
|
||||||
|
|
Loading…
Reference in New Issue