Project-Id-Version: Trac 0.12
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <>
Language-Team: en_US <>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #123 (new improvement)

Opened 9 years ago

Last modified 8 years ago

Usernames with special chars

Reported by: sebastian Owned by:
Priority: minor Milestone: 2.4
Component: unspecified Version: trunk
Keywords: user, model, search Cc:

Description (last modified by sebastian) (diff)

According to the user model the username has only the restriction of char lengths. However the search component requires an alphaNumeric value to be valid.

Usernames with other chars like underscores, dots, or spaces are invalid but might be useful.

My suggestion is to set the validation of the username to /^[\w\d][\w\d .-_]+[\w\d]$/ which requires an alphaNumeric char at the beginning and at the end.

See also for validation in CakePHP

Change History

comment:1 Changed 9 years ago by sebastian

  • Description modified (diff)

comment:2 Changed 8 years ago by sebastian

  • Milestone changed from 2.2 to 2.4
Note: See TracTickets for help on using tickets.