Added doctor stuff and user

This commit is contained in:
2015-10-09 10:46:42 +02:00
parent 1744fdb74f
commit 5e0a0b25eb
2 changed files with 13 additions and 1 deletions
+3 -1
View File
@@ -39,7 +39,9 @@ namespace ErgometerServer
break;
case NetCommand.CommandType.CHAT:
server.SendToClient(input);
Console.WriteLine(input);
break;
case NetCommand.CommandType.VALUESET:
server.SendToClient(input);
break;
default:
throw new FormatException("Unknown Command");
+10
View File
@@ -114,6 +114,16 @@ namespace ErgometerServer
FileHandler.SaveUsers(users);
}
private void AddUser(Dictionary<string, string> users)
{
foreach(KeyValuePair<string, string> user in users)
{
users.Add(user.Key, user.Value);
}
FileHandler.SaveUsers(users);
}
public bool CheckPassword(string name, string password)
{
string pass;