On Wed, Sep 9, 2009 at 4:07 PM, Aaron Quint<[email protected]> wrote: > Hey Chris, > > I was thinking about that, but it brings me to another question: So in > the validate doc, how do I check the userCtx argument for 'logged' in > status? Will the even be a userCtx argument if I'm not logged in? > Thanks for your help > --AQ > > Aaron Quint > http://www.quirkey.com >
if not logged userCtx.name is null . If not it contain the username. There is a full example about it working with cookie auth here : http://bitbucket.org/benoitc/benoitcim/ especially : http://bitbucket.org/benoitc/benoitcim/src/tip/vendor/inditeweb/_attachments/jquery.couchapp.js#cl-283 hope it helps. - benoƮt
