incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svilen ...@svilendobrev.com>
Subject Re: auto-generated user _id by POST?
Date Thu, 14 Mar 2013 09:14:54 GMT
POST does return the new id/rev.. but anyway

On Thu, 14 Mar 2013 13:02:51 +0400
Alexander Shorin <kxepal@gmail.com> wrote:

> Hi!
> 
> But if user doesn't know his name, how he will be able to log in?
> 
> --
> ,,,^..^,,,
> 
> 
> On Thu, Mar 14, 2013 at 12:52 PM, svilen <az@svilendobrev.com> wrote:
> > g'day
> > i was trying to create a new user without specifying name/id, but
> > seems cannot do it:
> >
> > $ curl  -X POST http://server:5984/_users -H 'Content-Type:
> > application/json' -d '{"password":"mysecret", "type":"user", }'
> >
> > {"error":"forbidden","reason":"doc.name is required"}
> >
> > tried with name:null but same.
> >
> > is this possible or forbidden by design?
> >
> > svil

Mime
View raw message