incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <>
Subject Re: How to access current admin user
Date Tue, 29 Jun 2010 15:37:46 GMT

On Jun 29, 2010, at 8:33 AM, Ray Daly wrote:

> How would I access the user object for the admin logged in for the current
> session?  I set up several people with their email addresses for login and I
> need to capture the currently logged in email.

Do an xhr request against /_session

There is a helper in jquery.couch.js for this already. I think it is $.couch.session({success:
fun}) where fun is your code.

Here's some example usage:


> -- 
> Blog-

View raw message