Hello, I have two validators in my db.py for my *auth_user* table for the password and the domain field, but both don´t work. When I type in a domain name that is already in the table, there occurs a *"duplicate entry 'test' for key 'domain'" *error. Can you tell me why the validators don´t work? auth = Auth(db)
auth.settings.extra_fields['auth_user'] = [Field('domain', length=16, unique =True)] auth.define_tables(username=False, signature=True) db.auth_user.domain.requires=[IS_NOT_IN_DB(db, db.auth_user.domain),IS_MATCH ('^[0-9a-zA-Z]{4,16}$')] db.auth_user.password.requires=IS_MATCH( '^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=\S+$).{8,}$') Thank you for your help, Thomas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.