fixed bug in lazy auth, thanks Villas

This commit is contained in:
Massimo Di Pierro
2012-08-24 10:14:12 -05:00
parent 001ca98855
commit 611aa6391a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-08-24 10:04:14) dev
Version 2.00.0 (2012-08-24 10:13:35) dev
+2 -1
View File
@@ -1412,7 +1412,8 @@ class Auth(object):
settings.table_user_name,[])+signature_list
if username or settings.cas_provider:
is_unique_username = \
[IS_MATCH('[\w\.\-]+'), IS_NOT_IN_DB(db, table.username)]
[IS_MATCH('[\w\.\-]+'),
IS_NOT_IN_DB(db,'%s.username' % settings.table_user_name)]
if not settings.username_case_sensitive:
is_unique_username.insert(1,IS_LOWER())
table = db.define_table(