From 38c25d6e8f5fa7eb84aec6767177dee3dd854b9b Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 18 Aug 2022 09:50:52 +1000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=83=D1=87=D0=B5=D1=82=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DiIiS-NA/BGS-Server/AccountsSystem/AccountManager.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/DiIiS-NA/BGS-Server/AccountsSystem/AccountManager.cs b/src/DiIiS-NA/BGS-Server/AccountsSystem/AccountManager.cs index ed4e953..186435f 100644 --- a/src/DiIiS-NA/BGS-Server/AccountsSystem/AccountManager.cs +++ b/src/DiIiS-NA/BGS-Server/AccountsSystem/AccountManager.cs @@ -109,10 +109,8 @@ namespace DiIiS_NA.LoginServer.AccountsSystem public static Account GetAccountByEmail(string email) { - //Logger.Debug("trying GetAccountByEmail {0}", email); - email = email.ToLower(); - if (LoadedAccounts.Any(a => a.Value.Email == email)) - return LoadedAccounts[LoadedAccounts.Single(a => a.Value.Email == email).Key]; + if (LoadedAccounts.Any(a => a.Value.Email.ToLower() == email.ToLower())) + return LoadedAccounts[LoadedAccounts.Single(a => a.Value.Email.ToLower() == email.ToLower()).Key]; else { List dbAcc = DBSessions.SessionQueryWhere(dba => dba.Email == email);