Almost finish login-register-system

This commit is contained in:
VegaZ
2018-09-20 18:54:30 +02:00
parent 21d597ae5e
commit 5bd2fa0522
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ namespace reallife_gamemode.Server.Events
[RemoteEvent("OnPlayerLogin")]
public void OnPlayerLogin(Client player, string password)
{
var checkPassword = "";
string checkPassword = null;
using (var loginContext = new Model.DatabaseContext())
{
var user = loginContext.Users.SingleOrDefault(b => b.Name == player.Name);