couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <jch...@couch.io>
Subject Re: Error when trying to create a session
Date Wed, 17 Mar 2010 17:39:57 GMT

On Mar 17, 2010, at 9:28 AM, Lena Herrmann wrote:

> Hi,
> 
> my code:
> 
> var userDoc = CouchDB.prepareUserDoc({
>  name: "Gaius Baltar"
> }, "secret");
> db.save(userDoc);
> CouchDB.login("Gaius Baltar", "secret");
> 
> Why does the last line get me a 401 Unauthorized?
> 
> According to the cookie_auth.js test, it should work like this. Am I missing something?

Does it help to call _ensure_full_commit after the userDoc is saved?

Chris

> 
> Cheers, Lena
> 
> 
> -- 
> http://lenaherrmann.net


Mime
View raw message