From e87dd769c80af46726e16a27cd65b9a312413d47 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 2 Nov 2022 19:44:30 -0300 Subject: Fix automatic login flow --- game/update.rpy | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'game') 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: -- cgit v1.2.3-70-g09d2