Have a look here:
http://web2py.com/books/default/chapter/29/09/access-control#Decorators

Should be something like
@auth.requires(auth.is_valid==True)



On Sunday, August 30, 2020 at 2:11:08 PM UTC+2 [email protected] wrote:

> Hello, maybe it's easy but I don't know exactly if it's possible.
> I want that a user can login ONLY if its rescord has is_valid=True. I 
> dont' want he logins if is_valid=False in the auth_user table...
> Is it possible? In which way? thank you
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/64df2060-a757-4174-8bfa-cf1cdeca7a0cn%40googlegroups.com.

Reply via email to