From 2a1eac837cd451d04155f5b19b9c9feff1094a75 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Thu, 4 Jun 2015 10:38:08 -0400 Subject: [PATCH] docs: Fix examples of auth via JSON For both userpass and LDAP --- website/source/docs/auth/ldap.html.md | 2 +- website/source/docs/auth/userpass.html.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/auth/ldap.html.md b/website/source/docs/auth/ldap.html.md index 90efae460..39f6c552c 100644 --- a/website/source/docs/auth/ldap.html.md +++ b/website/source/docs/auth/ldap.html.md @@ -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: diff --git a/website/source/docs/auth/userpass.html.md b/website/source/docs/auth/userpass.html.md index e5d985c3c..e4a345e4f 100644 --- a/website/source/docs/auth/userpass.html.md +++ b/website/source/docs/auth/userpass.html.md @@ -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: