Language parameter is not respected rendering the email

Created on 26 August 2024, 3 months ago

Problem/Motivation

When you pass a `lang` parameter to lost `lost-password` endpoint the email is still in the users preferred language.

Steps to reproduce

curl --request POST \
  --url 'https://my-server.com/user/lost-password?_format=json' \
  --header 'Content-Type: application/json' \
  --header 'X-CSRF-Token: my-token' \
  --data '{
	"mail": "my@email.com",
	"lang": "de"
}'

See that the email is not in german language.

Proposed resolution

See PR

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

9.0

Component

Code

Created by

🇪🇸Spain jherencia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024