Make sure usernames and emails are unique and message is sent to user.
This commit is contained in:
parent
730f4f2d66
commit
1574be3c07
4 changed files with 23 additions and 6 deletions
7
util/validation.py
Normal file
7
util/validation.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
import re
|
||||
|
||||
|
||||
def validate_email(email_address):
|
||||
if re.match(r'[^@]+@[^@]+\.[^@]+', email_address):
|
||||
return True
|
||||
return False
|
Reference in a new issue