Fixes #15067 - updated ldap sync locale to use app()->getLocale()
#15084
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We were previously not setting a locale for imported/updated LDAP users, which would default them to
en-US
. This means that if the.env
APP_LOCALE
was set to something likede-DE
, the user, on creation, would get created withen-US
. This should fix this by using theapp()->getLocale()
value for the newly created user. This will NOT update existing users who are already synced with LDAP, as they may have already been manually updated and we won't want to override that.Should fix #15067.