Hide password fields for radius/social auth users

on the users edit form, the password/confirm password field will be hidden similar to ldap. the username will not be required as well
This commit is contained in:
Jared Tabor
2016-06-29 11:13:56 -07:00
committed by John Mitchell
parent 17a27ef4a2
commit 8ab00e2d05
4 changed files with 10 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ export default
label: 'Username',
type: 'text',
awRequiredWhen: {
reqExpression: "not_ldap_user",
reqExpression: "not_ldap_user && !external_account",
init: true
},
autocomplete: false
@@ -69,7 +69,7 @@ export default
label: 'Password',
type: 'sensitive',
hasShowInputButton: true,
ngShow: 'ldap_user == false && socialAuthUser === false',
ngShow: 'ldap_user == false && socialAuthUser === false && external_account === null',
addRequired: true,
editRequired: false,
ngChange: "clearPWConfirm('password_confirm')",
@@ -80,7 +80,7 @@ export default
label: 'Confirm Password',
type: 'sensitive',
hasShowInputButton: true,
ngShow: 'ldap_user == false && socialAuthUser === false',
ngShow: 'ldap_user == false && socialAuthUser === false && external_account === null',
addRequired: true,
editRequired: false,
awPassMatch: true,