mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 09:43:05 +08:00
Squashed commit of the following:
commit469caf656eAuthor: Christian <6939810+chkr1011@users.noreply.github.com> Date: Sun Jul 31 10:55:40 2022 +0200 Fix build errors. commit42402fba04Author: Christian <6939810+chkr1011@users.noreply.github.com> Date: Sun Jul 31 10:22:23 2022 +0200 Allow interception of injected application messages. commita0dc8ab0d7Author: William Lee <31092948+william19821101@users.noreply.github.com> Date: Sun Jul 31 15:50:14 2022 +0800 Update Server_Simple_Samples.cs (#1474) Change e.UserName to e.Username
This commit is contained in:
@@ -138,7 +138,7 @@ public static class Server_Simple_Samples
|
||||
e.ReasonCode = MqttConnectReasonCode.ClientIdentifierNotValid;
|
||||
}
|
||||
|
||||
if (e.UserName != "ValidUser")
|
||||
if (e.Username != "ValidUser")
|
||||
{
|
||||
e.ReasonCode = MqttConnectReasonCode.BadUserNameOrPassword;
|
||||
}
|
||||
@@ -216,4 +216,4 @@ public static class Server_Simple_Samples
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user