forked from ticketfrei/ticketfrei
fixed bg image on some browsers. fixed invalid email error.
This commit is contained in:
parent
4ff86b2510
commit
c1a47473fe
|
@ -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)
|
||||||
|
try:
|
||||||
m.send("Complete your registration here: " + confirmlink, email, "[Ticketfrei] Confirm your account")
|
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."
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue