From 99fca0553b11b6ac3610f45dd52bea2ee0586692 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 13 Nov 2020 12:44:09 -0500 Subject: [PATCH] fix auth-script example in the manual --- docs/MANUAL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/MANUAL.md b/docs/MANUAL.md index d429c646..40a7e28a 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -972,11 +972,11 @@ Here is a toy example of an authentication script in Python that checks that the import sys, json raw_input = sys.stdin.readline() -input = json.loads(b) +input = json.loads(raw_input) account_name = input.get("accountName") passphrase = input.get("passphrase") success = bool(account_name) and bool(passphrase) and account_name == passphrase -print(json.dumps({"success": success}) +print(json.dumps({"success": success})) ``` Note that after a failed script invocation, Oragono will proceed to check the credentials against its local database.