diff --git a/static/js/pages/user-view.js b/static/js/pages/user-view.js index 5eae7fc7d..4f41b4e85 100644 --- a/static/js/pages/user-view.js +++ b/static/js/pages/user-view.js @@ -10,7 +10,7 @@ }) }]); - function UserViewCtrl($scope, $routeParams, $timeout, ApiService, UserService, UIService, AvatarService) { + function UserViewCtrl($scope, $routeParams, $timeout, ApiService, UserService, UIService, AvatarService, Config) { var username = $routeParams.username; $scope.showInvoicesCounter = 0; @@ -59,6 +59,8 @@ }; $scope.changePassword = function() { + if (Config.AUTHENTICATION_TYPE != 'Database') { return; } + UIService.hidePopover('#changePasswordForm'); $scope.changePasswordInfo.state = 'changing'; diff --git a/static/partials/user-view.html b/static/partials/user-view.html index d1ae6ac8a..d58896a74 100644 --- a/static/partials/user-view.html +++ b/static/partials/user-view.html @@ -170,7 +170,7 @@ -
+
Change Password