This commit is contained in:
Carneiro committed 2023-10-04 23:14:30 -03:00
1 parent 555cbdaaa9
commit 423723c673
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ def publish_check():
# get user
try:
stream_key = request.form.get('stream_key')
print(stream_key)
username = request.form.get('name')
stream_user = user.search_user(username)[0]
if username != stream_user['username']:
+1 -1
View File
@@ -26,7 +26,7 @@ def create():
logging.info('User %s created with stream key %s',
new_user.username, new_user.stream_key)
res = {'username': new_user.username, 'stream_key': str(new_user.stream_key)}
res = {'username': new_user.username, 'stream_key': new_user.stream_key.decode('utf-8')}
return make_response(jsonify(res), 200)