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())