|
@@ -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.
|