diff --git a/DoctorApp/Utils/Client.cs b/DoctorApp/Utils/Client.cs index 757f99c..a55151d 100644 --- a/DoctorApp/Utils/Client.cs +++ b/DoctorApp/Utils/Client.cs @@ -170,7 +170,7 @@ namespace DoctorApp.Utils string hashPassword = Util.Hasher.HashString(password); - byte[] message = DataParser.getJsonMessage(DataParser.GetLoginJson(username, hashPassword)); + byte[] message = DataParser.getJsonMessage(DataParser.LoginAsDoctor(username, hashPassword)); this.stream.BeginWrite(message, 0, message.Length, new AsyncCallback(OnWrite), null); diff --git a/Server/Client.cs b/Server/Client.cs index 4d67c2b..0d13187 100644 --- a/Server/Client.cs +++ b/Server/Client.cs @@ -92,6 +92,8 @@ namespace Server string identifier; bool isJson = DataParser.getJsonIdentifier(message, out identifier); + + Debug.WriteLine("server " + Encoding.ASCII.GetString(payloadbytes)); if (isJson) { switch (identifier)