polls #86

Manually merged
Darks merged 13 commits from polls into dev 2021-02-20 17:53:08 +01:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit c0bb2f5448 - Show all commits

View File

@ -144,6 +144,7 @@ def activate_account(token):
ts = URLSafeTimedSerializer(app.config["SECRET_KEY"])
email = ts.loads(token, salt="email-confirm-key", max_age=86400)
except Exception as e:
# TODO: add proper login
print(f"Error: {e}")
abort(404)

View File

@ -9,6 +9,5 @@ class API():
try:
markdown = request.get_json()['text']
except BadRequestKeyError:
return "Dummy value"
abort(400)
return str(md(markdown))