update
This commit is contained in:
parent
423723c673
commit
8ed1a5e3d4
|
@ -40,5 +40,5 @@ def publish_check():
|
||||||
print('vish')
|
print('vish')
|
||||||
return Response('Invalid Stream Key', 401)
|
return Response('Invalid Stream Key', 401)
|
||||||
|
|
||||||
jwt.verify(stream_key.encode('utf-8'))
|
jwt.verify(stream_key)
|
||||||
return Response('OK', 200)
|
return Response('OK', 200)
|
||||||
|
|
|
@ -26,7 +26,7 @@ def create():
|
||||||
logging.info('User %s created with stream key %s',
|
logging.info('User %s created with stream key %s',
|
||||||
new_user.username, new_user.stream_key)
|
new_user.username, new_user.stream_key)
|
||||||
|
|
||||||
res = {'username': new_user.username, 'stream_key': new_user.stream_key.decode('utf-8')}
|
res = {'username': new_user.username, 'stream_key': new_user.stream_key}
|
||||||
return make_response(jsonify(res), 200)
|
return make_response(jsonify(res), 200)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue