mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
fix(auth): fix oauh enabled function
This commit is contained in:
parent
15b6941872
commit
81e3ace232
2 changed files with 2 additions and 2 deletions
|
@ -317,7 +317,7 @@
|
|||
<!-- !group-search-settings -->
|
||||
</div>
|
||||
|
||||
<oauth-settings ng-if="settings.AuthenticationMethod === 3" settings="OAuthSettings"></oauth-settings>
|
||||
<oauth-settings ng-if="isOauthEnabled()" settings="OAuthSettings"></oauth-settings>
|
||||
|
||||
<!-- actions -->
|
||||
<div class="form-group">
|
||||
|
|
|
@ -15,7 +15,7 @@ function ($q, $scope, Notifications, SettingsService, FileUploadService) {
|
|||
};
|
||||
|
||||
$scope.isOauthEnabled = function isOauthEnabled() {
|
||||
return $scope.settings.AuthenticationMethod === 3;
|
||||
return $scope.settings && $scope.settings.AuthenticationMethod === 3;
|
||||
};
|
||||
|
||||
$scope.addSearchConfiguration = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue