summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2009-12-02 10:26:17 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2009-12-02 10:26:17 (GMT)
commit9f4007b91b143e9f8968c5ebdf23fe81f93cc332 (patch)
tree8a265fc8a99fac8d3574425f4b23f579fb428c09
parentec923ff2e2d0854d54cfa83282f066c85b65c948 (diff)
downloadpratic-9f4007b91b143e9f8968c5ebdf23fe81f93cc332.zip
pratic-9f4007b91b143e9f8968c5ebdf23fe81f93cc332.tar.gz
pratic-9f4007b91b143e9f8968c5ebdf23fe81f93cc332.tar.bz2
Accept dots and dashes in usernames
-rw-r--r--idp/extra/modules/identities_ui.ptl2
1 files changed, 1 insertions, 1 deletions
diff --git a/idp/extra/modules/identities_ui.ptl b/idp/extra/modules/identities_ui.ptl
index c40d7b7..5b58fce 100644
--- a/idp/extra/modules/identities_ui.ptl
+++ b/idp/extra/modules/identities_ui.ptl
@@ -496,7 +496,7 @@ class IdentitiesDirectory(Directory):
if form.is_submitted():
uid = form.get_widget('uid').parse()
- if uid and not re.match(str('^[A-Za-z0-9]+$'), uid):
+ if uid and not re.match(str('^[A-Za-z0-9\.-]+$'), uid):
form.set_error('uid', _('wrong format'))
if form.is_submitted() and not form.has_errors():