couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Gable <zi...@ignition-project.com>
Subject Re: Creating user with no password
Date Tue, 24 Jul 2012 14:26:27 GMT
Did you try "password": null?
On Jul 24, 2012 8:55 AM, "Aliaksandr Barysiuk" <a.barysiuk@gmail.com> wrote:

> Hello,
>
> Is it possible to create user without a password? I tried to create user
> like this
>
> curl -X POST http://say.couchdb:5984/_users -d '{"_id":"org.couchdb.user:*
> *test", "name":"test", "roles":[], "type" : "user"}' -H
> "Content-Type:application/**json"
>
> ...and like this:
>
> curl -X POST http://say.couchdb:5984/_users -d '{"_id":"org.couchdb.user:*
> *test", "name":"test", "roles":[], "type" : "user", *"password" : ""*}'
> -H "Content-Type:application/**json"
>
> ..then i tried:
>
> curl -X POST http://say.couchdb:5984/_**session<http://say.couchdb:5984/_session>-d
"{'name':'test', 'password':''}"
>
> or
>
> curl -X POST http://say.couchdb:5984/_**session<http://say.couchdb:5984/_session>-d
"{'name':'test'}"
>
> and always get {"error":"unauthorized","**reason":"Name or password is
> incorrect."}.
>
> Thank's
>
> Alex
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message