wownero-funding-system/funding/validation.py
2018-10-20 02:16:08 +02:00

8 lines
186 B
Python

def val_username(value):
if len(value) >= 20:
raise Exception("username too long")
def val_email(value):
if len(value) >= 50:
raise Exception("email too long")