From 9f9f7a627e742c772344d55f048c7245ca03ebcd Mon Sep 17 00:00:00 2001 From: Stephan Jauernick Date: Wed, 2 Jan 2013 15:14:46 +0100 Subject: [PATCH] corrected a documentation glitch for checkToken - clarified which token is validated --- doc/api/http_api.md | 2 +- src/node/db/API.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http_api.md b/doc/api/http_api.md index 61daeaa3..b9b5fedb 100644 --- a/doc/api/http_api.md +++ b/doc/api/http_api.md @@ -414,7 +414,7 @@ sends a custom message of type `msg` to the pad #### checkToken() * API >= 1.2 -returns ok when api token is valid +returns ok when the current api token is valid *Example returns:* * `{"code":0,"message":"ok","data":null}` diff --git a/src/node/db/API.js b/src/node/db/API.js index ea58d859..a26055a7 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -549,7 +549,7 @@ exports.sendClientsMessage = function (padID, msg, callback) { } /** -checkToken() returns ok when api token is valid +checkToken() returns ok when the current api token is valid Example returns: