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 4ff86b2510
commit c1a47473fe
2 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,7 @@ import sendmail
import pytoml as toml import pytoml as toml
import jwt import jwt
import pylibscrypt import pylibscrypt
import smtplib
class Datagetter(object): class Datagetter(object):
@ -87,7 +88,10 @@ def register():
# send the mail # send the mail
m = sendmail.Mailer(config) 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." return "We sent you an E-Mail. Please click on the confirmation link."

View file

@ -1,5 +1,5 @@
body { body {
background-image: url(../img/wallpaper.png); background-image: url(/static/img/wallpaper.png);
font-family: Verdana, Arial, Helvetica, sans-serif; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 15px; font-size: 15px;
line-height: 1.5em; line-height: 1.5em;