couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: Authentication Questions
Date Wed, 09 Sep 2009 15:08:27 GMT
On Wed, Sep 9, 2009 at 4:07 PM, Aaron Quint<aaron@quirkey.com> 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

Mime
View raw message