@@ -25,14 +25,15 @@ namespace ReallifeGamemode.Server.Events
|
||||
string username = player.Name;
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
if (password.Length < 6)
|
||||
if (password.Length < GlobalHelper.requiredPasswordLength)
|
||||
{
|
||||
player.TriggerEvent("SERVER:Login_Error", "Das Passwort muss aus mindestens 6 Zeichen bestehen.");
|
||||
player.TriggerEvent("SERVER:Login_Error", "Das Passwort muss aus mindestens sechs Zeichen bestehen.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (dbContext.Users.Where(u => u.SocialClubName == player.SocialClubName).Count() != 0)
|
||||
{
|
||||
player.TriggerEvent("SERVER:Login_Error", "Es ist schon ein Konto mit dieser Socialclub-ID registriert.");
|
||||
player.TriggerEvent("SERVER:Login_Error", "Diese Social Club ID wird bereits verwendet.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user