password handling refactoring and added conversion of passwords to unicode

This commit is contained in:
skodak
2006-03-11 11:26:36 +00:00
parent c5b71097bc
commit df1931578a
12 changed files with 91 additions and 57 deletions
+1 -1
View File
@@ -174,7 +174,7 @@
}
// password needs to be encrypted
else if ($name == "password" && !empty($value)) {
$user->password = md5($value);
$user->password = hash_internal_user_password($value);
}
else if ($name == "username") {
$user->username = addslashes(moodle_strtolower($value));