NEUER LOGIN SCREEEEEEEEEEN
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user