From 68cea29876e6c86aafe0937861326356c3f5ef42 Mon Sep 17 00:00:00 2001 From: Chang-Hung Liang Date: Tue, 10 Jul 2018 10:03:17 +0800 Subject: [PATCH] Doc: Session auth should be using authData instead of inputData --- README.md | 4 ++-- docs/index.html | 4 ++-- snippets/session-auth.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c822a6f..25520df 100644 --- a/README.md +++ b/README.md @@ -498,8 +498,8 @@ const getSessionKey = (z, bundle) => { method: 'POST', url: 'https://example.com/api/accounts/login.json', body: { - username: bundle.inputData.username, - password: bundle.inputData.password + username: bundle.authData.username, + password: bundle.authData.password } }); diff --git a/docs/index.html b/docs/index.html index 41c01f5..8bec8d6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1234,8 +1234,8 @@

Session

method: 'POST', url: 'https://example.com/api/accounts/login.json', body: { - username: bundle.inputData.username, - password: bundle.inputData.password + username: bundle.authData.username, + password: bundle.authData.password } }); diff --git a/snippets/session-auth.js b/snippets/session-auth.js index d325dfc..d49adfe 100644 --- a/snippets/session-auth.js +++ b/snippets/session-auth.js @@ -3,8 +3,8 @@ const getSessionKey = (z, bundle) => { method: 'POST', url: 'https://example.com/api/accounts/login.json', body: { - username: bundle.inputData.username, - password: bundle.inputData.password + username: bundle.authData.username, + password: bundle.authData.password } });