From a45dccdc9bcfd9395549391da2b20c760d6439b3 Mon Sep 17 00:00:00 2001 From: b3yond Date: Fri, 11 Jan 2019 13:21:47 +0100 Subject: [PATCH] nicer error messages --- frontend.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend.py b/frontend.py index 0ea9d1f..63143d5 100755 --- a/frontend.py +++ b/frontend.py @@ -58,12 +58,13 @@ def register_post(): def confirm(city, token): # check whether city already exists if db.by_city(city): - return dict(error='Account already exists.') + return dict(error='This Account was already confirmed, please try ' + 'signing in.') # create db-entry if db.confirm(token, city): # :todo show info "Account creation successful." redirect('/settings') - return dict(error='Email confirmation failed.') + return dict(error='Account creation failed. Please try to register again.') @post('/login')