fixed bg image on some browsers. fixed invalid email error.

This commit is contained in:
b3yond 2018-02-17 15:51:33 +01:00
parent 52c2d1e341
commit 2ce2a45f7b
2 changed files with 6 additions and 2 deletions

View file

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

View file

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