set doctor of communication when doctor logs in

This commit is contained in:
Sem van der Hoeven
2020-10-14 14:49:53 +02:00
parent b519f33cb5
commit 91a20e0af7
5 changed files with 53 additions and 25 deletions

View File

@@ -236,7 +236,7 @@ namespace DoctorApp.Utils
string hashUser = Hashing.Hasher.HashString(username);
string hashPassword = Hashing.Hasher.HashString(password);
byte[] message = DataParser.getJsonMessage(DataParser.GetLoginJson(hashUser, hashPassword));
byte[] message = DataParser.getJsonMessage(DataParser.LoginAsDoctor(hashUser, hashPassword));
this.stream.BeginWrite(message, 0, message.Length, new AsyncCallback(OnWrite), null);