diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-11-02 19:44:30 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-11-02 19:44:30 -0300 |
commit | e87dd769c80af46726e16a27cd65b9a312413d47 (patch) | |
tree | 8d7799a3c6d5fd51cd9ffe5bfb60c96e74cef871 /game | |
parent | 3981f4445eb1c8af2027a69d8317b8505478d383 (diff) | |
download | renpy-e87dd769c80af46726e16a27cd65b9a312413d47.tar.gz renpy-e87dd769c80af46726e16a27cd65b9a312413d47.tar.bz2 renpy-e87dd769c80af46726e16a27cd65b9a312413d47.tar.xz renpy-e87dd769c80af46726e16a27cd65b9a312413d47.zip |
Fix automatic login flow
Diffstat (limited to 'game')
-rw-r--r-- | game/update.rpy | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/game/update.rpy b/game/update.rpy index 0accc32..dce899c 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -406,6 +406,12 @@ label register: # Python end if (r.status_code != 200): call screen notice(_("Vault returned error %d\n\nAutomatic login failed." % r.status_code)) + else: + $ stdout("Vault result: (%d) %s" % (r.status_code, ifte(config.developer, r.text, "OK"))) + $ auth2 = r.json() + $ vaultId = auth2["vaultId"] + $ vaultToken = auth2["token"] + return # Manual login if persistent.vmethod is None: |