summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2008-07-18 15:06:56 (GMT)
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2008-07-18 15:06:56 (GMT)
commitec72a9d61937c3caff6da06c4a6973f017111857 (patch)
tree4554c36c6434196d5c76553322451c479c34cda4
parentff60abef0a60929dd166d969240ba4a158972944 (diff)
downloadfas-ec72a9d61937c3caff6da06c4a6973f017111857.zip
fas-ec72a9d61937c3caff6da06c4a6973f017111857.tar.gz
fas-ec72a9d61937c3caff6da06c4a6973f017111857.tar.xz
Adds email check on sign up.
-rw-r--r--fas/user.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/fas/user.py b/fas/user.py
index 74b7d7e..fc9306f 100644
--- a/fas/user.py
+++ b/fas/user.py
@@ -467,6 +467,13 @@ https://admin.fedoraproject.org/accounts/user/verifyemail/%s
turbogears.flash(_("We're sorry but out of special concern for children's privacy, we do not knowingly accept online personal information from children under the age of 13. We do not knowingly allow children under the age of 13 to become registered members of our sites or buy products and services on our sites. We do not knowingly collect or solicit personal information about children under 13."))
turbogears.redirect('/')
try:
+ person = People.by_email_address(email)
+ except InvalidRequestError:
+ pass
+ else:
+ turbogears.flash(_("Sorry. That email address is already in use. Perhaps you forgot your password?"))
+ turbogears.redirect("/")
+ try:
person = People()
person.username = username
person.human_name = human_name