fixed bg image on some browsers. fixed invalid email error.
This commit is contained in:
parent
52c2d1e341
commit
2ce2a45f7b
|
@ -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."
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue