Browse Source

UserID fix

Bart Reedijk 10 years ago
parent
commit
d16e4b05b3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Proftaak Remote Healthcare/Server/Client.cs

+ 2 - 1
Proftaak Remote Healthcare/Server/Client.cs

@@ -48,7 +48,8 @@ namespace Server
                                 _global.CheckLogin(response_parts[1], response_parts[2], out admin, out id);
                                 if (id > -1)
                                 {
-                                    if(_global.GetUsers().First(item => item.id == response_parts[1]).isDoctor)
+                                    this.iduser = id;
+                                    if (_global.GetUsers().First(item => item.id == response_parts[1]).isDoctor)
                                     {
                                         sendString("0|1|1|");   // Doctor
                                     }