auth providers
This commit is contained in:
@@ -217,7 +217,7 @@ def register_socketio_handlers(socketio):
|
||||
@socketio.on("connect")
|
||||
def handle_connect():
|
||||
ensure_poller_started()
|
||||
if auth.enabled() and not auth.current_user_id():
|
||||
if auth.enabled() and not auth.ensure_request_user():
|
||||
disconnect()
|
||||
return False
|
||||
profile = active_profile()
|
||||
@@ -234,7 +234,7 @@ def register_socketio_handlers(socketio):
|
||||
|
||||
@socketio.on("select_profile")
|
||||
def handle_select_profile(data):
|
||||
if auth.enabled() and not auth.current_user_id():
|
||||
if auth.enabled() and not auth.ensure_request_user():
|
||||
disconnect()
|
||||
return
|
||||
old_profile = active_profile()
|
||||
|
||||
Reference in New Issue
Block a user