mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
Better error handling for user registration, better alerts
This commit is contained in:
parent
40705e5a34
commit
4044c5c644
6 changed files with 38 additions and 18 deletions
7
wowfunding/validation.py
Normal file
7
wowfunding/validation.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
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")
|
Loading…
Add table
Add a link
Reference in a new issue