[web2py] Re: Login restricted based on subscription

2014-08-13 Thread Rufus
On Tuesday, August 12, 2014 4:28:11 PM UTC-4, Kenneth wrote:

 Hello everyone,

 I'm building a site that clients subscribes to so I need to limit their 
 login based on the subscription. Is there a built in feature to limit login 
 to a date range?


 Kenneth


Can't your successful login action check the date and redirect to an 
account expired page and log the user off?
Or better, to a To continue/reinstate your subscription... page.

 

-- 
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.


[web2py] Re: Login restricted based on subscription

2014-08-12 Thread Dave S


On Tuesday, August 12, 2014 1:28:11 PM UTC-7, Kenneth wrote:

 Hello everyone,

 I'm building a site that clients subscribes to so I need to limit their 
 login based on the subscription. Is there a built in feature to limit login 
 to a date range?



I would use the scheduler to run s periodic job (daily, perhaps) that 
checks the auth table for expiration dates that have passed, and mark those 
accounts as disabled.

/dps
 

-- 
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.