Browse Source

fix auth-script example in the manual

tags/v2.5.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
99fca0553b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      docs/MANUAL.md

+ 2
- 2
docs/MANUAL.md View File

@@ -972,11 +972,11 @@ Here is a toy example of an authentication script in Python that checks that the
972 972
 import sys, json
973 973
 
974 974
 raw_input = sys.stdin.readline()
975
-input = json.loads(b)
975
+input = json.loads(raw_input)
976 976
 account_name = input.get("accountName")
977 977
 passphrase = input.get("passphrase")
978 978
 success = bool(account_name) and bool(passphrase) and account_name == passphrase
979
-print(json.dumps({"success": success})
979
+print(json.dumps({"success": success}))
980 980
 ```
981 981
 
982 982
 Note that after a failed script invocation, Oragono will proceed to check the credentials against its local database.

Loading…
Cancel
Save