mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Fixed translations
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
2cb9ac26cd
commit
d9fbf330e5
|
@ -22,6 +22,7 @@ class StoreLdapSettings extends FormRequest
|
|||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
\Log::error('boop');
|
||||
return [
|
||||
'ldap_username_field' => 'not_in:sAMAccountName|required_if:ldap_enabled,1',
|
||||
'ldap_auth_filter_query' => 'not_in:uid=samaccountname|required_if:ldap_enabled,1',
|
||||
|
@ -29,13 +30,4 @@ class StoreLdapSettings extends FormRequest
|
|||
];
|
||||
}
|
||||
|
||||
public function messages(): array
|
||||
{
|
||||
return [
|
||||
'ldap_username_field' => trans('validation.custom.ldap_username_field.not_in'),
|
||||
'ldap_auth_filter_query' => trans('validation.custom.ldap_auth_filter_query.not_in'),
|
||||
'ldap_filter' => trans('validation.custom.ldap_filter.regex'),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -208,9 +208,11 @@ return [
|
|||
'radio_buttons' => ':attribute is invalid.',
|
||||
'invalid_value_in_field' => 'Invalid value included in this field',
|
||||
|
||||
'ldap_username_field.not_in' => '<code>sAMAccountName</code> (mixed case) will likely not work. You should use <code>samaccountname</code> (lowercase) instead. ',
|
||||
'ldap_auth_filter_query.not_in' => '<code>uid=samaccountname</code> is probably not a valid auth filter. You probably want <code>uid=</code> ',
|
||||
'ldap_filter.regex' => 'This value should probably not be wrapped in parentheses.',
|
||||
'ldap_username_field' => [
|
||||
'not_in' => '<code>sAMAccountName</code> (mixed case) will likely not work. You should use <code>samaccountname</code> (lowercase) instead.'
|
||||
],
|
||||
'ldap_auth_filter_query' => ['not_in' => '<code>uid=samaccountname</code> is probably not a valid auth filter. You probably want <code>uid=</code> '],
|
||||
'ldap_filter' => ['regex' => 'This value should probably not be wrapped in parentheses.'],
|
||||
|
||||
],
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue