diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-06-03 16:29:31 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-06-03 16:29:31 -0300 |
commit | 332f5911c54fb01e4e008c4d8ec6b2004e58ad32 (patch) | |
tree | 03bb96ced4d9ed1035105af128d57ce0569c86eb | |
parent | b0ac66f8b424b3968886efa3455cff515474c9e5 (diff) | |
download | renpy-332f5911c54fb01e4e008c4d8ec6b2004e58ad32.tar.gz renpy-332f5911c54fb01e4e008c4d8ec6b2004e58ad32.tar.bz2 renpy-332f5911c54fb01e4e008c4d8ec6b2004e58ad32.tar.xz renpy-332f5911c54fb01e4e008c4d8ec6b2004e58ad32.zip |
Save the OTP token
-rw-r--r-- | game/update.rpy | 6 | ||||
-rw-r--r-- | game/vault.rpy | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/game/update.rpy b/game/update.rpy index 35992f8..b2dbc68 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -106,7 +106,7 @@ init python: persistent.host=HOST_LIST[0] if persistent.serverlist is None or persistent.serverlist == []: persistent.serverlist=[{"Name": "Moubootaur Legends", "Host": "server.tmw2.org", "Port": 6901, "Desc": "Ready to become a Moubootaur Legend now?\n\nIn Moubootaur Legends universe, a being known as the Monster King threatens humanity, sending hordes of monsters and causing havoc for purposes unknown for anyone. And yet, in the shadows, a greater threat looms over the horizon, waiting for the time of its ressurection...\nTake arms, for heroes are not born but forged with sweat and effort, and become a Moubootaur Legend now.", "Link": "https://moubootaurlegends.org/", "News": "https://updates.tmw2.org/news.txt", "Back": "tmw2", "UUID": "5936870052ae411c8f0271907f8cf2e4", "Help": "https://discord.gg/J4gcaqM", "Online": "https://tmw2.org/online.json", "Policy": "https://tmw2.org/legal"}] - vaultId = 99; vaultToken = "token"; progress = 100 + vaultId = 99; vaultToken = "token"; vaultOTP=""; progress = 100 return ######################################################################### # If persistent data is not yet set, it must be created @@ -236,6 +236,7 @@ init python: auth2 = r.json() vaultId = auth2["vaultId"] vaultToken = auth2["token"] + vaultOTP = auth2["otp"] # If everything went well, inform Steam support is ON # Enable all Steam features and skip Vault-only auth @@ -256,6 +257,7 @@ init python: status_update(_("Steam auth disabled, logging on Vault..."), 80) vaultId = 0 vaultToken = "MANUAL" + vaultOTP = "" ######################################### ####### TODO FIXME # Must return and let a prompt for username & password @@ -414,6 +416,7 @@ label register: $ auth2 = r.json() $ vaultId = auth2["vaultId"] $ vaultToken = auth2["token"] + $ vaultOTP = auth2["otp"] return # Manual login @@ -520,6 +523,7 @@ label register: auth2 = r.json() vaultId = auth2["vaultId"] vaultToken = auth2["token"] + vaultOTP = auth2["otp"] except: traceback.print_exc() stdout("Error - Vault result is bad.") diff --git a/game/vault.rpy b/game/vault.rpy index 0dc1596..e421e14 100644 --- a/game/vault.rpy +++ b/game/vault.rpy @@ -234,6 +234,7 @@ label register_vault: auth2 = r.json() vaultId = auth2["vaultId"] vaultToken = auth2["token"] + vaultOTP = auth2["otp"] except: traceback.print_exc() stdout("Error - Vault result is bad.") |