NEUER LOGIN SCREEEEEEEEEEN

This commit is contained in:
hydrant
2020-05-04 23:03:39 +02:00
parent b61c57a2d1
commit 36cacd4775
47 changed files with 18613 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using GTANetworkAPI;
using ReallifeGamemode.Database.Models;
using ReallifeGamemode.Database.Entities;
@@ -14,8 +14,9 @@ namespace ReallifeGamemode.Server.Events
class Register : Script
{
[RemoteEvent("CLIENT:Login_RegisterRequest")]
public void OnPlayerRegister(Player player, string username, string password, string passwordRepeat)
public void OnPlayerRegister(Player player, string password)
{
string username = player.Name;
using (var dbContext = new DatabaseContext())
{
if (dbContext.Users.Where(u => u.SocialClubName == player.SocialClubName).Count() >= 3)