at the bottom of db.py you can put:
if auth.user and request.function!='user'
and (request.now_lastchargepasswrod).days>100:
redirect(URL('user/change_password'))
On Tuesday, 26 April 2016 08:37:56 UTC-5, isi_jca wrote:
>
> Hi!!!
>
> After user login, I want to check validity password, I added extra fields
> (lastchangepassword and valitiypassword) at the auth_user table. Where must
> I trigger a function to check this fields and then force at the user to
> change password when password expire?
>
> Thanks in advanced.
>
--
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].
For more options, visit https://groups.google.com/d/optout.