Merge pull request #347 from coreos-inc/passwordnonauth
Disable password change for non-DB auth
This commit is contained in:
commit
a5d0569e35
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
var username = $routeParams.username;
|
||||||
|
|
||||||
$scope.showInvoicesCounter = 0;
|
$scope.showInvoicesCounter = 0;
|
||||||
|
@ -59,6 +59,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.changePassword = function() {
|
$scope.changePassword = function() {
|
||||||
|
if (Config.AUTHENTICATION_TYPE != 'Database') { return; }
|
||||||
|
|
||||||
UIService.hidePopover('#changePasswordForm');
|
UIService.hidePopover('#changePasswordForm');
|
||||||
$scope.changePasswordInfo.state = 'changing';
|
$scope.changePasswordInfo.state = 'changing';
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Change Password -->
|
<!-- Change Password -->
|
||||||
<div class="row" ng-show="changePasswordInfo.state !='changing'">
|
<div class="row" quay-show="Config.AUTHENTICATION_TYPE == 'Database' && changePasswordInfo.state !='changing'">
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-title">Change Password</div>
|
<div class="panel-title">Change Password</div>
|
||||||
|
|
||||||
|
|
Reference in a new issue