Actions
Feature #6166
openSupport german umlauts and whitespaces in login string
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
Related issues
Actions