Address format check

pull/9/head
muchwowmining 2 years ago
parent 1765bcdd12
commit 5b719029ee

@ -38,6 +38,8 @@ async def dashboard_address_post():
address = form.get('address')
if len(address) != 97:
raise Exception("Please submit a WOW address")
elif not address.isalnum():
raise Exception("Please submit a WOW address")
# update user
from yellow.models import User

Loading…
Cancel
Save