PMCORE-2719 Anonymous option, does not hide the username and password fields in LDAP connection
This commit is contained in:
@@ -158,24 +158,35 @@
|
||||
components: {
|
||||
formUploadSource
|
||||
},
|
||||
validations: {
|
||||
form: {
|
||||
name: {
|
||||
required
|
||||
},
|
||||
serverAddress: {
|
||||
required
|
||||
},
|
||||
port: {
|
||||
required
|
||||
},
|
||||
userName: {
|
||||
required
|
||||
},
|
||||
password: {
|
||||
required
|
||||
validations() {
|
||||
let fields = {
|
||||
form: {
|
||||
name: {
|
||||
required
|
||||
},
|
||||
serverAddress: {
|
||||
required
|
||||
},
|
||||
port: {
|
||||
required
|
||||
}
|
||||
}
|
||||
};
|
||||
if (this.form.anonymous === '1') {
|
||||
fields.form.userName = {
|
||||
};
|
||||
fields.form.password = {
|
||||
};
|
||||
}
|
||||
if (this.form.anonymous === '0') {
|
||||
fields.form.userName = {
|
||||
required
|
||||
};
|
||||
fields.form.password = {
|
||||
required
|
||||
};
|
||||
}
|
||||
return fields;
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user