diff --git a/photo-1461685265823-f8d5d0b08b9b?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&dl=matthew-henry-87142-unsplash.jpg b/photo-1461685265823-f8d5d0b08b9b?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&dl=matthew-henry-87142-unsplash.jpg new file mode 100644 index 0000000..1b546db Binary files /dev/null and b/photo-1461685265823-f8d5d0b08b9b?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&dl=matthew-henry-87142-unsplash.jpg differ diff --git a/static/css/style.css b/static/css/style.css index 3dc8126..d24f795 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,6 +1,6 @@ body { background-image: url(/static/img/ticketfrei-og-image.jpg); - background-size: 50%; + background-height: 100%; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; line-height: 1.5em; diff --git a/static/img/ticketfrei-og-image.jpg b/static/img/ticketfrei-og-image.jpg index 3fd0614..506178c 100644 Binary files a/static/img/ticketfrei-og-image.jpg and b/static/img/ticketfrei-og-image.jpg differ diff --git a/user.py b/user.py index 3158568..92eb463 100644 --- a/user.py +++ b/user.py @@ -9,7 +9,7 @@ from pylibscrypt import scrypt_mcf, scrypt_mcf_check class User(object): def __init__(self, uid): # set cookie - response.set_cookie('uid', uid, secret=db.secret, path='/') + response.set_cookie('uid', uid, secret=db.get_secret(), path='/') self.uid = uid def check_password(self, password): @@ -55,7 +55,7 @@ class User(object): return jwt.encode({ 'email': email, 'uid': self.uid - }, db.secret).decode('ascii') + }, db.get_secret()).decode('ascii') def is_appropriate(self, report): db.execute("SELECT patterns FROM triggerpatterns WHERE user_id=?;", @@ -300,7 +300,7 @@ schlitz client_secret = row[1] return client_id, client_secret except TypeError: - app_name = "ticketfrei" + str(db.secret)[0:4] + app_name = "ticketfrei" + str(db.get_secret())[0:4] client_id, client_secret \ = Mastodon.create_app(app_name, api_base_url=instance) db.execute("""INSERT INTO mastodon_instances(