diff options
-rw-r--r-- | game/update.rpy | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/game/update.rpy b/game/update.rpy index 625acd3..3a7e37f 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -178,7 +178,7 @@ init python: status_update(pc=70) - time.sleep(0.1) + #time.sleep(0.1) ######################################################################### # Before starting, we must check for Vault or Steam credentials @@ -391,7 +391,7 @@ label register: $ status_update(pc=92) if persistent.totp is None: - call screen register_input(_("Please insert your {b}2FA code{/b}. If you do not have 2FA, leave blank.\n\n{u}TOTP setup will be emailed and required for later logins.{/u}")) + call screen register_input(_("If you already have an account, please insert your {b}2FA code{/b}.\n\n{u}Otherwise, a new account will be created and details will be sent to your email.{/u}")) else: python: key = base64.b32decode(persistent.totp.encode('utf-8'), True) @@ -428,6 +428,15 @@ label register: traceback.print_exc() stdout("Error - Vault result is bad.") + # Maybe we got a message informing this is a new account? + try: + if (auth2["status"] == 1): + status_update("Creating account and logging in...") + renpy.notify("Account created! Check email.") + time.sleep(1.0) + except: + pass + $ del data $ del code2FA @@ -443,7 +452,7 @@ label register: ################################################################################# label set2fa: - call screen register_input(_("Please insert your {b}2FA Secret{/b} {i}or the link{/i} sent to you by email.\n\n{size=18}{color=#f00}WARNING:{/color} Will be saved locally with minimal security.{/size}")) + call screen register_input(_("Please insert your {b}2FA Secret{/b} {i}or the link{/i} sent to you by email.\n\n{size=18}{color=#f00}WARNING:{/color} Will be saved locally without cryptography. We advise using Google Authenticator or similar instead.{/size}")) if _return != "": python: if _return.startswith("otpauth:"): |