MDL-14679 towards /user conversion

This commit is contained in:
skodak
2008-05-30 22:11:31 +00:00
parent 1d8bf5f0ab
commit 5d910388bb
19 changed files with 132 additions and 114 deletions
+3 -3
View File
@@ -70,16 +70,16 @@ class auth_plugin_email extends auth_plugin_base {
* Sign up a new user ready for confirmation.
* Password is passed in plaintext.
*
* @param object $user new user object (with system magic quotes)
* @param object $user new user object
* @param boolean $notify print notice with link and terminate
*/
function user_signup($user, $notify=true) {
global $CFG;
global $CFG, $DB;
require_once($CFG->dirroot.'/user/profile/lib.php');
$user->password = hash_internal_user_password($user->password);
if (! ($user->id = insert_record('user', $user)) ) {
if (! ($user->id = $DB->insert_record('user', $user)) ) {
print_error('auth_emailnoinsert','auth');
}