Example #1
0
 def validate_email(self, email):
     if not User.check_email(email.data):
         raise ValidationError('No Account Exists for that Email')
Example #2
0
 def validate_email(self, email):
     if User.check_email(email.data):
         raise ValidationError('That Email Has Been Taken')