mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Make rule for user language less restrictive (#2075)
This commit is contained in:
@@ -216,7 +216,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
||||
{
|
||||
$rules = self::getValidationRules();
|
||||
|
||||
$rules['language'][] = new In(array_values(array_filter(ResourceBundle::getLocales(''), fn ($lang) => preg_match('/^[a-z]{2}$/', $lang))));
|
||||
$rules['language'][] = new In(ResourceBundle::getLocales(''));
|
||||
$rules['timezone'][] = new In(DateTimeZone::listIdentifiers());
|
||||
|
||||
return $rules;
|
||||
|
||||
Reference in New Issue
Block a user