Project

General

Profile

Actions

Feature #6166

open

Support german umlauts and whitespaces in login string

Added by Max Meier over 14 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
2010-08-18
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

I am using redmine to authenticate with a Lotus Notes LDAP server. Unfortunately the validated login string can contain umlauts and whitespaces, like in the name "Max Müller". Redmine by default does neither allow non-ascii characters nor whitespaces in the login string.

If there is no other reason, why special characters must not be used, I think one could localize the validation pattern by extracting it into config/locales to be configured individually for each language.

For myself now, I changed app/models/user.rb

validates_format_of :login, :with => /^[a-z0-9_\-@\.]*$/i

to
validates_format_of :login, :with => /^[a-z0-9_ äüöéßÄÜÖ\-@\.]*$/iu

which suits my needs very well.

Please let me know, if this is a good idea.


Files

patch.txt (1000 Bytes) patch.txt Patch for login names containing umlauts and accent d'aigu Max Meier, 2011-12-14 11:03
feature-6166.diff (1.45 KB) feature-6166.diff Go MAEDA, 2016-02-02 10:31

Related issues

Related to Redmine - Patch #811: Username validation - allow spaces...NewJean-Philippe Lang2008-03-08

Actions
Related to Redmine - Feature #21923: net-ldap 0.12.0 - 0.12.1 dropped support of UTF-8ClosedJean-Philippe Lang

Actions
Actions

Also available in: Atom PDF