From 7fc90093b2d404fd38f3edb943f7ce1e5aa20787 Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <erasmussen2@unl.edu>
Date: Tue, 18 Aug 2009 17:04:04 +0000
Subject: [PATCH] added the additional code that's need in the elgg engine reg
 function

---
 README | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/README b/README
index 54912a21..847401c5 100644
--- a/README
+++ b/README
@@ -41,6 +41,17 @@ http://ucommjuhl.unl.edu/UNL_Elgg/elgg, change it!)
 *******
 -Altered /elgg/engine/lib/users.php to bar registration of accounts starting with "unl_"
 
+	function register_user($username, $password, $name, $email, $allow_multiple_emails = false, $friend_guid = 0, $invitecode = '', $isfromSSO = false) {
+	
+		// Check to see if $username begins with "unl_"
+			if($isfromSSO==false)
+			{
+				if ( "unl_" == substr($username,0,4) ) {
+					//return false;
+					throw new RegistrationException("Username cannot begin with 'unl_'");
+				}
+			}
+
 
 *******
 ** Plugin info
-- 
GitLab