hide un and pw fields when user is social auth based

This commit is contained in:
John Mitchell 2015-11-16 11:18:08 -05:00
parent dfb056d200
commit 9bf0b8be4c
2 changed files with 3 additions and 2 deletions

View File

@ -307,6 +307,7 @@ export function UsersEdit($scope, $rootScope, $compile, $location, $log, $routeP
$scope.ldap_user = (data.ldap_dn !== null && data.ldap_dn !== undefined && data.ldap_dn !== '') ? true : false;
$scope.not_ldap_user = !$scope.ldap_user;
master.ldap_user = $scope.ldap_user;
$scope.socialAuthUser = (data.auth.length > 0) ? true : false;
// Initialize related search functions. Doing it here to make sure relatedSets object is populated.
RelatedSearchInit({

View File

@ -84,7 +84,7 @@ export default
label: 'Password',
type: 'sensitive',
hasShowInputButton: true,
ngShow: 'ldap_user == false',
ngShow: 'ldap_user == false && socialAuthUser === false',
addRequired: true,
editRequired: false,
ngChange: "clearPWConfirm('password_confirm')",
@ -95,7 +95,7 @@ export default
label: 'Confirm Password',
type: 'sensitive',
hasShowInputButton: true,
ngShow: 'ldap_user == false',
ngShow: 'ldap_user == false && socialAuthUser === false',
addRequired: true,
editRequired: false,
awPassMatch: true,