Make sure usernames and emails are unique and message is sent to user.

This commit is contained in:
yackob03 2013-09-27 18:16:26 -04:00
parent 730f4f2d66
commit 1574be3c07
4 changed files with 23 additions and 6 deletions

7
util/validation.py Normal file
View file

@ -0,0 +1,7 @@
import re
def validate_email(email_address):
if re.match(r'[^@]+@[^@]+\.[^@]+', email_address):
return True
return False