docs: Fix examples of auth via JSON

For both userpass and LDAP
This commit is contained in:
Justin Campbell 2015-06-04 10:38:08 -04:00
parent d634a92d2a
commit 2a1eac837c
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ The password should be sent in the POST body encoded as JSON.
```shell
$ curl $VAULT_ADDR/v1/auth/ldap/login/mitchellh \
-d "password=foo"
-d '{ "password": "foo" }'
```
The response will be in JSON. For example:

View File

@ -35,7 +35,7 @@ The password should be sent in the POST body encoded as JSON.
```shell
$ curl $VAULT_ADDR/v1/auth/userpass/login/mitchellh \
-d '{"password: "foo"}'
-d '{ "password": "foo" }'
```
The response will be in JSON. For example: