diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-09 23:10:26 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-09 23:10:26 -0300 |
commit | 4108cca10e7fe11a845a506020eb356100d624ab (patch) | |
tree | 954b800b7d15b32c8b7971263432c8ffa4d01e48 | |
parent | c4eeb4c2af5564eb5b40a9c97e2f5c2833b91d6a (diff) | |
download | renpy-4108cca10e7fe11a845a506020eb356100d624ab.tar.gz renpy-4108cca10e7fe11a845a506020eb356100d624ab.tar.bz2 renpy-4108cca10e7fe11a845a506020eb356100d624ab.tar.xz renpy-4108cca10e7fe11a845a506020eb356100d624ab.zip |
Make sure the email you've entered have at least a semblance of a proper email.
-rw-r--r-- | game/update.rpy | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/game/update.rpy b/game/update.rpy index a2f1aa4..40af6a6 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -312,8 +312,14 @@ label register: call screen register_method $ status_update(pc=85) $ method = _return - call screen register_input("Please insert your {b}email{/b}.") - $ email=_return + $ email="" + while email == "": + call screen register_input("Please insert your {b}email{/b}.") + $ email=_return + if not "@" in email or not "." in email: + call screen notice(_("Please make sure you enter a valid email!")) + $ email="" + $ status_update(pc=90) ########################################## |