diff --git a/README b/README index 54912a217134789812dfd34302165748cebd3fed..847401c59892781b5a4d91528e974b5fc10008fc 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