diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index 168685799..3d7f1869f 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -978,6 +978,15 @@ bool idle_startup()
LL_INFOS("AppInit") << "Attempting login as: " << firstname << " " << lastname << LL_ENDL;
gDebugInfo["LoginName"] = firstname + " " + lastname;
}
+ else
+ {
+ // User tried to login on a non-SecondLife grid with an empty lastname.
+ LLSD subs;
+ subs["GRIDNAME"] = gHippoGridManager->getConnectedGrid()->getGridName();
+ LLNotificationsUtil::add(firstname.empty() ? "EmptyFirstNameMessage" : "EmptyLastNameMessage", subs);
+ LLStartUp::setStartupState(STATE_LOGIN_SHOW);
+ return FALSE;
+ }
LLScriptEdCore::parseFunctions("lsl_functions_sl.xml"); //Singu Note: This parsing function essentially replaces the entirety of the lscript_library library
diff --git a/indra/newview/skins/default/xui/en-us/notifications.xml b/indra/newview/skins/default/xui/en-us/notifications.xml
index acb78b1f4..1161aaecc 100644
--- a/indra/newview/skins/default/xui/en-us/notifications.xml
+++ b/indra/newview/skins/default/xui/en-us/notifications.xml
@@ -264,6 +264,22 @@ An error occurred while updating [APP_NAME]. Please download the latest version
yestext="Ok"/>
+
+[GRIDNAME] requires a non-empty first name to login.
+Please try again.
+
+
+
+[GRIDNAME] requires a non-empty last name to login.
+Please try again.
+
+