I'm using a Users table & sessions to handle users.

db.define_table('users',
>                     db.Field('name', 'string'),
>                     db.Field('password', 'password'),#If local user
>                     db.Field('active', 'boolean', default=False),
>                     db.Field('uid', 'string'),
>                     db.Field('slinked', 'string', default=""),#Redirect to
> a linked account
>                     db.Field('last_in', 'datetime', default=request.now),
>                     db.Field('date', 'datetime', default=request.now,
> writable=False)
>                 )


Is it a good idea to switch-over to auth? If so, how do I do it?


On Thu, Nov 10, 2011 at 3:44 AM, Richard Vézina <ml.richard.vez...@gmail.com
> wrote:

> Thank you!
>
> Richard
>
>
> On Wed, Nov 9, 2011 at 4:23 PM, Massimo Di Pierro <
> massimo.dipie...@gmail.com> wrote:
>
>> They are usually called
>>
>> auth.settings.login_onaccept = lambda form: ..
>> auth.settings.profile_onaccept = lambda form: ..
>> auth.settings.<method>_onaccept = lambda form: ..
>>
>> and they all take the form.
>>
>> the name exception is
>>
>> auth.settings.logout_onlogout - lambda user: ...
>>
>> because there is no form to fill on logout but there is a user.
>>
>> On Nov 9, 1:37 pm, Richard Vézina <ml.richard.vez...@gmail.com> wrote:
>> > Nice approach so I could update a custom field in auth_user and put it
>> true
>> > or false at login and logout?
>> >
>> > How I may set my flag to true?
>> >
>> > Is there a auth.settings.login_onlogin ??
>> >
>> > Thanks
>> >
>> > Richard
>> >
>> > On Wed, Nov 9, 2011 at 2:14 PM, Massimo Di Pierro <
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > massimo.dipie...@gmail.com> wrote:
>> > > Sessions never end. Do you want to detect logout?
>> >
>> > > auth.settings.logout_onlogout = lambda user: do_something_with(user)
>> >
>> > > On Nov 9, 11:58 am, Sathvik Ponangi <psath...@gmail.com> wrote:
>> > > > Is there someway that I could call a function when the user ends
>> their
>> > > > session?
>>
>
>


-- 
Sathvik Ponangi

Reply via email to