summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-09 23:10:26 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-09 23:10:26 -0300
commit4108cca10e7fe11a845a506020eb356100d624ab (patch)
tree954b800b7d15b32c8b7971263432c8ffa4d01e48
parentc4eeb4c2af5564eb5b40a9c97e2f5c2833b91d6a (diff)
downloadrenpy-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.rpy10
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)
##########################################