Develop #10
@@ -170,7 +170,7 @@ namespace DoctorApp.Utils
|
|||||||
|
|
||||||
string hashPassword = Util.Hasher.HashString(password);
|
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);
|
this.stream.BeginWrite(message, 0, message.Length, new AsyncCallback(OnWrite), null);
|
||||||
|
|||||||
@@ -92,6 +92,8 @@ namespace Server
|
|||||||
|
|
||||||
string identifier;
|
string identifier;
|
||||||
bool isJson = DataParser.getJsonIdentifier(message, out identifier);
|
bool isJson = DataParser.getJsonIdentifier(message, out identifier);
|
||||||
|
|
||||||
|
Debug.WriteLine("server " + Encoding.ASCII.GetString(payloadbytes));
|
||||||
if (isJson)
|
if (isJson)
|
||||||
{
|
{
|
||||||
switch (identifier)
|
switch (identifier)
|
||||||
|
|||||||
Reference in New Issue
Block a user