[web2py] Re: login validation
Hi, I don't know about an "is_active" field in auth_user table, only regarding Record versioning, but I don't use it. Regards El lunes, 31 de agosto de 2020 a las 13:05:35 UTC+2, and...@gmail.com escribió: > I noted in the manual. But for your opinion what is the meaning about > is_active in auth_user? > Why is it useful? > Thank you > > > Il giorno lunedì 31 agosto 2020 08:46:15 UTC+2, Paco Bernal ha scritto: >> >> I meant registration_key :) >> >> http://web2py.com/books/default/chapter/29/09/access-control?search=blocked#Access-Control >> >> El lunes, 31 de agosto de 2020 a las 0:08:32 UTC+2, Paco Bernal escribió: >> >>> Hi >>> If you set at anytime key_registration='blocked' in auth_user table that >>> user will not be able to loging. >>> That's the way I would do it >>> Regards >>> >>> El domingo, 30 de agosto de 2020 a las 14:11:08 UTC+2, and...@gmail.com >>> escribió: >>> 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/63e215a9-2997-4f9e-9f02-a3b0edc75fecn%40googlegroups.com.
[web2py] Re: login validation
I noted in the manual. But for your opinion what is the meaning about is_active in auth_user? Why is it useful? Thank you Il giorno lunedì 31 agosto 2020 08:46:15 UTC+2, Paco Bernal ha scritto: > > I meant registration_key :) > > http://web2py.com/books/default/chapter/29/09/access-control?search=blocked#Access-Control > > El lunes, 31 de agosto de 2020 a las 0:08:32 UTC+2, Paco Bernal escribió: > >> Hi >> If you set at anytime key_registration='blocked' in auth_user table that >> user will not be able to loging. >> That's the way I would do it >> Regards >> >> El domingo, 30 de agosto de 2020 a las 14:11:08 UTC+2, and...@gmail.com >> escribió: >> >>> 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/476a08bd-dd5f-4f46-86e4-bde366b36933o%40googlegroups.com.
[web2py] Re: login validation
I meant registration_key :) http://web2py.com/books/default/chapter/29/09/access-control?search=blocked#Access-Control El lunes, 31 de agosto de 2020 a las 0:08:32 UTC+2, Paco Bernal escribió: > Hi > If you set at anytime key_registration='blocked' in auth_user table that > user will not be able to loging. > That's the way I would do it > Regards > > El domingo, 30 de agosto de 2020 a las 14:11:08 UTC+2, and...@gmail.com > escribió: > >> 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/3ffd2de3-2eca-4613-a467-6c9018de5082n%40googlegroups.com.
[web2py] Re: login validation
Hi If you set at anytime key_registration='blocked' in auth_user table that user will not be able to loging. That's the way I would do it Regards El domingo, 30 de agosto de 2020 a las 14:11:08 UTC+2, and...@gmail.com escribió: > 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/22e15707-ab23-440b-89f2-db4382b68965n%40googlegroups.com.
[web2py] Re: login validation
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 and...@gmail.com 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/64df2060-a757-4174-8bfa-cf1cdeca7a0cn%40googlegroups.com.