[web2py] Re: delete and logout user

2015-11-24 Thread Alex Glaros
thanks guys, good insight as always -- 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 Gro

[web2py] Re: delete and logout user

2015-11-24 Thread Anthony
Presumably the logout and delete are happening in the same request, so just put the id in a variable. Hard to say exactly how you should handle it without seeing your code. On Tuesday, November 24, 2015 at 2:05:35 PM UTC-5, Alex Glaros wrote: > > Anthony, > > am using custom deletion workflow.

[web2py] Re: delete and logout user

2015-11-24 Thread Alex Glaros
Anthony, am using custom deletion workflow. Where is best place to store the user_id so logout doesn't erase it? session? temp table? thanks Alex -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Re: delete and logout user

2015-11-24 Thread Anthony
On Tuesday, November 24, 2015 at 12:28:13 PM UTC-5, Leonel Câmara wrote: > > Anthony shouldn't Auth.profile do that by default? > Yes. I assume he was using some custom user account deletion workflow. Alex, if you set auth.settings.allow_delete_accounts=True, you can let users delete their accou

[web2py] Re: delete and logout user

2015-11-24 Thread Leonel Câmara
Anthony shouldn't Auth.profile do that by default? -- 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

[web2py] Re: delete and logout user

2015-11-24 Thread Anthony
Sure, grab the ID first, then logout, then delete. On Tuesday, November 24, 2015 at 11:44:24 AM UTC-5, Alex Glaros wrote: > > If a user deletes their account, my controller deletes their db.auth_user > record but their login session is still active. If I try to auth.logout() > then, I get integ