Skip to content

Commit

Permalink
Merge pull request #4932 from Hyperkid123/fix-disabled-password
Browse files Browse the repository at this point in the history
Fixed disabled password input.
  • Loading branch information
mzazrivec authored Nov 19, 2018
2 parents 2c7218a + e2ebc93 commit 7a82ca5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/components/auth-credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ ManageIQ.angular.app.component('authCredentials', {
};

this.showChangePasswordLinks = function(index) {
return !vm.newRecord && (vm.modelCopy[vm.prefix + '_protocol'] === vm.formModel[vm.prefix + '_protocol']) && vm.formModel[index];
var matchPassword = vm.modelCopy[vm.prefix + '_password'] === vm.formModel[vm.prefix + '_password'];
return vm.bChangeStoredPassword ||
!vm.newRecord && (vm.modelCopy[vm.prefix + '_protocol'] === vm.formModel[vm.prefix + '_protocol'] && matchPassword) && vm.formModel[index];
};

this.showVerify = function(userid) {
Expand Down

0 comments on commit 7a82ca5

Please sign in to comment.