Commit 1ab5be5d authored by Chris Herberte's avatar Chris Herberte

bug fix #383428 (4) by kenorb: Link to user homepage contain a password

parent 146a5deb
......@@ -33,7 +33,10 @@ function email_registration_user($op, &$edit, &$account, $category = NULL) {
}
// replace with generated username
db_query("UPDATE {users} SET name = '%s' WHERE uid = '%s'", $namenew, $account->uid);
if (db_query("UPDATE {users} SET name = '%s' WHERE uid = '%s'", $namenew, $account->uid)) {
$edit['name'] = $namenew; // update in the user array for access by other modules
}
// if email verification is off and a new user is the one creating account, log the new user in with correct name
global $user;
if (!variable_get('user_email_verification', 1) && $user->uid == 0) {
......
Markdown is supported
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