Commit 7fc90093 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

added the additional code that's need in the elgg engine reg function

parent ce26905f
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment