Merge pull request 'Fix address submission' (#11) from fix-addr-submission into master

Reviewed-on: https://git.wownero.com/wownero/YellWOWPages/pulls/11
This commit is contained in:
dsc 2022-03-20 08:09:27 +00:00
commit c9b0b4287a
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ async def dashboard():
async def dashboard_address_post():
form = await request.form
address = form.get('address')
if not bool(re.match(r'^(WW)\\d[0-9A-Za-z]{94}$', address)):
if len(address) != 97:
raise Exception("Please submit a WOW address")
# update user