fix: [user:validation] Allow user edition when `username` is not set

cli-modification-summary
Sami Mokaddem 2022-09-21 10:10:02 +02:00
parent 80277e4bdf
commit 37094e0abb
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class UsersTable extends AppTable
]
])
->requirePresence(['username'], 'create')
->notEmptyString('username', 'Please fill this field');
->notEmptyString('username', __('Please fill this field'), 'create');
return $validator;
}