diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index 381b80fb66089162438f728bc7f2e17e25e2c220..0dfe5a23301de23c1f8a011d156b2d4be1e1469a 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -100,15 +100,7 @@ std::string get_user_key_from_name(const std::string &username)
     std::string key = username;
     LLStringUtil::trim(key);
     LLStringUtil::toLower(key);
-    if (!LLGridManager::getInstance()->isSystemGrid())
-    {
-        size_t separator_index = username.find_first_of(" ");
-        if (separator_index == username.npos)
-        {
-            // CRED_IDENTIFIER_TYPE_ACCOUNT
-            return key;
-        }
-    }
+
     // CRED_IDENTIFIER_TYPE_AGENT
     size_t separator_index = username.find_first_of(" ._");
     std::string first = username.substr(0, separator_index);