summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-09-25 14:30:17 -0300
committerJesusaves <cpntb1@ymail.com>2021-09-25 14:30:17 -0300
commita38c9a6898006ae2528df0f64a77d9e7fbdfd1e8 (patch)
treeaacbd093b9b8358856748bccda5af68fdc4a0e7c
parent0a68dd351fc577c6d43d3d553c2d17bba68d9a1e (diff)
downloadrenpy-a38c9a6898006ae2528df0f64a77d9e7fbdfd1e8.tar.gz
renpy-a38c9a6898006ae2528df0f64a77d9e7fbdfd1e8.tar.bz2
renpy-a38c9a6898006ae2528df0f64a77d9e7fbdfd1e8.tar.xz
renpy-a38c9a6898006ae2528df0f64a77d9e7fbdfd1e8.zip
Some changes to 2FA policy to hopefully make easier/more intuitive.
-rw-r--r--game/update.rpy15
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:"):