Address format check

This commit is contained in:
muchwowmining 2022-03-19 17:31:58 +01:00
parent 1765bcdd12
commit 5b719029ee

View file

@ -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