From c1a47473fe33898ad128cdfb5e63cf243ad68aec Mon Sep 17 00:00:00 2001 From: b3yond Date: Sat, 17 Feb 2018 15:51:33 +0100 Subject: [PATCH] fixed bg image on some browsers. fixed invalid email error. --- frontend/website.py | 6 +++++- static/css/style.css | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/website.py b/frontend/website.py index 713cac4..793ed52 100644 --- a/frontend/website.py +++ b/frontend/website.py @@ -8,6 +8,7 @@ import sendmail import pytoml as toml import jwt import pylibscrypt +import smtplib class Datagetter(object): @@ -87,7 +88,10 @@ def register(): # send the mail m = sendmail.Mailer(config) - m.send("Complete your registration here: " + confirmlink, email, "[Ticketfrei] Confirm your account") + try: + m.send("Complete your registration here: " + confirmlink, email, "[Ticketfrei] Confirm your account") + except smtplib.SMTPRecipientsRefused: + return "Please enter a valid E-Mail address." return "We sent you an E-Mail. Please click on the confirmation link." diff --git a/static/css/style.css b/static/css/style.css index d448559..91be648 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,5 +1,5 @@ body { - background-image: url(../img/wallpaper.png); + background-image: url(/static/img/wallpaper.png); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5em;