Commit 9bdd7d07 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Unique usernames not being enforced on csv upload

parent 34a0504c
......@@ -221,7 +221,7 @@ function uploadcsv_validate(Pieform $form, $values) {
$form->set_error('file', get_string('uploadcsverrorinvalidusername', 'admin', $i));
return;
}
if (record_exists('usr', 'username', $username, 'authinstance', $authinstance)) {
if (record_exists('usr', 'username', $username)) {
$form->set_error('file', get_string('uploadcsverroruseralreadyexists', 'admin', $i, $username));
return;
}
......
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