auth.settings.login_onaccept=lambda form: do_something(form)

same with logout, etc.

On Nov 12, 11:50 am, Alex <[email protected]> wrote:
> Hello,
>
> I have a question regarding authentication.  I would like to find a
> way to do certain events (ie.  store stuff in the cache, update a last
> login time in the DB, etc.) when a user logs in and logs out.
>
> I'm currently just using the built in "auth" object and was wondering
> if there was a simple way I could do this?  Would I need to override
> something like the login/logout commands the auth exposes?  If so, is
> there a reference on how to do this?
>
> Thanks!

Reply via email to