Letractively / webloginpe

Automatically exported from code.google.com/p/webloginpe
0 stars 0 forks source link

function Register() - rename variable $newUser #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
File: webloginpe.class.php
Function: Register
Line: 603

// EVENT: OnBeforeWebSaveUser
foreach ($_POST as $name => $value)
{
    $NewUser[$name] = $value;
}
$this->OnBeforeWebSaveUser($NewUser, array());

// If all that crap checks out, now we can create the account.
$newUser = "INSERT INTO ".$web_users." (`username`, `password`, `cachepwd`) 
VALUES ('".$username."', '".md5($password)."', '".$cachepwd."')";
$createNewUser = $modx->db->query($newUser);

Uses the same variables $NewUser and $newUser for different actions

Original issue reported on code.google.com by webseei...@gmail.com on 16 Sep 2010 at 6:47