getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

User creation fails when Spanish is the only language #4048

Closed texnixe closed 2 years ago

texnixe commented 2 years ago

Description

In a multilanguage setup, when Spanish is the only language, a new user cannot be created, the error is "Please enter a valid language".

In my test this did not happen when choosing other languages like English, French or German as the only language, or when adding additional languages to Spanish as default.

Expected behavior
A user should be created.

Screenshots

To reproduce

  1. In a fresh Starterkit, enable languages in config.
  2. In the Panel, add Spanish as new (and only) language.
  3. Try to create a new user.
  4. See error

Your setup

Kirby Version
3.6.1.1.

Console output
{"$dialog":{"code":400,"error":"Please enter a valid language","path":"dialogs\/users\/create","referrer":"\/users"}}

Your system (please complete the following information)

Additional context
https://forum.getkirby.com/t/error-creating-users-on-3-6/24129

bastianallgeier commented 2 years ago