I tried both of those before posting; alas neither are supported by
Web2py/OAuth.

Perhaps that's a hole?


On 22 June 2011 14:37, Anthony <[email protected]> wrote:
> On Wednesday, June 22, 2011 6:57:14 AM UTC-4, Carl wrote:
>>
>> I need to call a function when a user logins for the first time.
>> Ideally, this would be when the user record is inserted into the user
>> table.
>
>
> There's an auth.settings.register_onaccept setting that takes a list of
> callbacks to be executed after the registration db entry but before any
> redirection. If that doesn't work properly with OAuth, there's also an
> auth.settings.login_onaccept setting. In that case, the callback would have
> to check the auth_event table and make sure there is only one "Logged-in"
> event in the table for the current user (which would indicate it's the first
> login).
>
> See http://web2py.com/book/default/chapter/08#Settings-and-Messages.
>
> Anthony

Reply via email to