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);