Yes, we should probably have a friendlier error in that case. You can 
submit a Google Code issue about it.

For now, you can include logic in the /default/user function to check the 
db for a valid record whenever the "profile" action is called.

Anthony

On Monday, February 17, 2014 1:45:42 PM UTC-5, HittingSmoke wrote:
>
> This appears to be a bug.
>
> You can recreate it by creating a user with auth then logging in with the 
> "remember me" box checked.
>
> Then empty the user table in the database. Go to /user/register and you 
> will be redirected to /user/profile with an "Object not found" error.
>
> Clearing cookies fixes the issue.
>
> I imagine that auth should be checking the session cookie against the user 
> table then deleting the session cookie if the user no longer exists.
>

-- 
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/groups/opt_out.

Reply via email to