Conver usernames to lowercase for internal use. This prevent duplicate users

when using external authentication and posgresql.
This commit is contained in:
paca70
2003-04-24 20:06:40 +00:00
parent e40488f80c
commit 1e22bc9c04
4 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
if ($usernew = data_submitted()) {
$usernew->firstname = strip_tags($usernew->firstname);
$usernew->lastname = strip_tags($usernew->lastname);
$usernew->username = trim(moodle_strtolower($usernew->username));
if (empty($_FILES['imagefile'])) {
$_FILES['imagefile'] = NULL; // To avoid using uninitialised variable later
}