diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-10 00:13:32 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-10 00:13:32 -0300 |
commit | e6657c317fc3ae618497258bdbbb45e9fed63ccf (patch) | |
tree | 86fc3832feabed0f6316ecd12fa348dfa258c0f7 | |
parent | 8f54da16012f26e713e6d50d338a89328a3484ab (diff) | |
download | renpy-e6657c317fc3ae618497258bdbbb45e9fed63ccf.tar.gz renpy-e6657c317fc3ae618497258bdbbb45e9fed63ccf.tar.bz2 renpy-e6657c317fc3ae618497258bdbbb45e9fed63ccf.tar.xz renpy-e6657c317fc3ae618497258bdbbb45e9fed63ccf.zip |
Password minimum length
-rw-r--r-- | game/update.rpy | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/game/update.rpy b/game/update.rpy index d40348f..234516e 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -356,9 +356,11 @@ label register: ## What we'll do now depends on the method ## 2FA-Auth elif method == 2: - call screen register_input("Please insert your {b}Password{/b}.") - $ password = _return - # We must send the password on plain-text; That's why we use SSL + $ password = "" + while len(password) < 4: + call screen register_input("Please insert your {b}Password{/b}.\nIt has to be at least 4 characters long.") + $ password = _return + # We must send the password on plain-text; That's why we use SSL $ status_update(pc=92) 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}") |