Project

General

Profile

Actions

Patch #23346

closed

Set user's localization before redirecting on forced password change to generate flash message in current user's language

Added by Holger Just over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
I18n
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

If a user is forced to change their password on login, they get redirected to a password change form with a flash message set. The flash message however is generated using the locale of the previous request since the current localization is only set to i18n after the redirect. When multiple users with dirrferent languages are using a Redmine, the flash message can thus be shown in an unexpected language.

The attached patch against the current trunk fixes this behavior by setting the language before checking for a forced password change.


Files

Actions #1

Updated by Go MAEDA over 7 years ago

  • Target version set to 3.3.1
Actions #2

Updated by Jean-Philippe Lang over 7 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Patch committed, thanks.

Actions

Also available in: Atom PDF