From d218b052a19ac0d8c2c3f5e1aecc53d92516679e Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 29 Jun 2013 17:07:17 -0500 Subject: [PATCH] fixed issues 1568, no spaces in usermames, thanks Iceberg --- VERSION | 2 +- gluon/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index aa81269c..596fbfe9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.06.27.07.20.48 +Version 2.6.0-development+timestamp.2013.06.29.17.06.13 diff --git a/gluon/tools.py b/gluon/tools.py index 6ec9d4d3..8e131114 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1545,7 +1545,7 @@ class Auth(object): settings.table_user_name, []) + signature_list if username or settings.cas_provider: is_unique_username = \ - [IS_MATCH('[\w\.\-]+'), + [IS_MATCH('[\w\.\-]+', strict=True), IS_NOT_IN_DB(db, '%s.username' % settings.table_user_name)] if not settings.username_case_sensitive: is_unique_username.insert(1, IS_LOWER())