Commit 170a7a86 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed legacy_auth handler for on_publish_done events

parent 02be1c95
......@@ -17,9 +17,9 @@ def streamauth():
return 'Bad request', 400
if not internal:
return 'Forbidden', 403
if request.values['pass'] != 'caisoh8aht0wuSu':
return 'Forbidden', 403
if request.values['call'] == 'publish':
if request.values['pass'] != 'caisoh8aht0wuSu':
return 'Forbidden', 403
matches = query("SELECT lectures.* FROM lectures JOIN courses ON lectures.course_id = courses.id WHERE courses.handle = ? ORDER BY lectures.time DESC", request.values['name'])
now = datetime.now()
match = {'id': -1}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment