Require first name field if LDAP is enabled

This commit is contained in:
snipe 2017-07-08 01:40:56 -07:00
parent 814bf18a4b
commit d2f6c8af11

View file

@ -39,6 +39,7 @@ class Setting extends Model
"ldap_basedn" => 'sometimes|required_if:ldap_enabled,1', "ldap_basedn" => 'sometimes|required_if:ldap_enabled,1',
"ldap_filter" => 'sometimes|required_if:ldap_enabled,1', "ldap_filter" => 'sometimes|required_if:ldap_enabled,1',
"ldap_username_field" => 'sometimes|required_if:ldap_enabled,1', "ldap_username_field" => 'sometimes|required_if:ldap_enabled,1',
"ldap_fname_field" => 'sometimes|required_if:ldap_enabled,1',
"ldap_lname_field" => 'sometimes|required_if:ldap_enabled,1', "ldap_lname_field" => 'sometimes|required_if:ldap_enabled,1',
"ldap_auth_filter_query" => 'sometimes|required_if:ldap_enabled,1', "ldap_auth_filter_query" => 'sometimes|required_if:ldap_enabled,1',
"ldap_version" => 'sometimes|required_if:ldap_enabled,1', "ldap_version" => 'sometimes|required_if:ldap_enabled,1',