removed hashing username

This commit is contained in:
Sem van der Hoeven
2020-10-14 13:13:59 +02:00
parent ecb3be2916
commit 8263d51ca7
3 changed files with 14 additions and 9 deletions

View File

@@ -265,10 +265,10 @@ namespace ClientApp.Utils
/// </summary>
public void tryLogin(string username, string password)
{
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.GetLoginJson(username, hashPassword));
this.stream.BeginWrite(message, 0, message.Length, new AsyncCallback(OnWrite), null);