mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 17:53:03 +08:00
Fix wrong password handling (string -> byte[])
This commit is contained in:
@@ -29,7 +29,7 @@ def on_validate_client_connection(context):
|
||||
context["result"] = "connection_refused_not_authorized"
|
||||
return
|
||||
|
||||
if context["password"] != "secret":
|
||||
if context["password_string"] != "secret":
|
||||
context["result"] = "connection_refused_not_authorized"
|
||||
|
||||
print(context)
|
||||
|
||||
Reference in New Issue
Block a user