Hello,
I just recently added a
auth.define_tables(signature=True)
and noticed that the auth_user table now contains a few additional
columns, and this one caught my attention - the "is_active" column.
The only documentation I noticed around this is:
http://web2py.com/books/default/search/29?search=is_active ... and
interestingly I do not see "is_active" in the source code anywhere.
Basically, I noticed that the is_active column is introduced to the
auth_user definition, and the value is None. I realize this means the
users with is_active=True are the ones who can login, or use the
application. Also, does this mean that the following code is applicable
to is_active=True?
db.auth_user.email.requires = (IS_LOWER(), IS_NOT_IN_DB(db,
'auth_user.email'))
Am asking this because I notice that I can create users in the system
with the same email id(one of them is_active=True, and the other is
is_active=False or None). Is this working as designed?
--
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/
--
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.