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.

(cherry picked from commit 7a82ca5)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1647013
  • Loading branch information
mzazrivec authored and simaishi committed Nov 19, 2018
1 parent 948d088 commit c11f2b7
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 c11f2b7

Please sign in to comment.