Browse Source

Fix SSLify test

pull/2/head
Noah Petherbridge 4 years ago
parent
commit
b36e764507
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      defaults.yml
  2. +1
    -1
      rophako/app.py
  3. +1
    -1
      rophako/model/wiki.py

+ 1
- 1
defaults.yml View File

@@ -59,7 +59,7 @@ rophako:
# will do the following:
# - Send HTTP Strict-Transport-Security header
# - Use secure session cookies (SSL-only)
force_ssl: true
force_ssl: false

# Secret key used for session cookie signing. Make this long and hard to
# guess.

+ 1
- 1
rophako/app.py View File

@@ -44,7 +44,7 @@ app.secret_key = bytes(Config.security.secret_key.encode("utf-8")) \
.decode(string_escape)

# Security?
if Config.security.force_ssl == "true":
if Config.security.force_ssl == True:
app.config['SESSION_COOKIE_SECURE'] = True
sslify = SSLify(app)


+ 1
- 1
rophako/model/wiki.py View File

@@ -74,7 +74,7 @@ def edit_page(name, author, body, note, history=True):

# The new revision to be added.
rev = dict(
id=hashlib.md5(str(int(time.time()))).hexdigest(),
id=hashlib.md5(str(int(time.time())).encode("utf-8")).hexdigest(),
time=int(time.time()),
author=author,
body=body,

Loading…
Cancel
Save