Commit 6005cc62 authored by Son Nguyen's avatar Son Nguyen

Fix error in "user" generator. Bug 1399464

Change-Id: I1b8f1d002dd4679b25c7ae4fdcdb6af2ee73e933
parent 6ba2a9cf
......@@ -127,7 +127,7 @@ EOD;
if (method_exists($authobj, 'is_username_valid') && !$authobj->is_username_valid($record['username'])) {
throw new SystemException("New username'" . $record['username'] . "' is not valid.");
}
if (record_exists_select('usr', 'LOWER(username) = ?', strtolower($record['username']))) {
if (record_exists_select('usr', 'LOWER(username) = ?', array(strtolower($record['username'])))) {
throw new ErrorException("The username'" . $record['username'] . "' has been taken.");
}
if (method_exists($authobj, 'is_password_valid') && !$authobj->is_password_valid($record['password'])) {
......
......@@ -19,7 +19,6 @@ Feature: Mahara admins can add users via CSV files
And I wait "1" seconds
Then I should see "Add users by CSV"
When I attach the file "users.csv" to "uploadcsv_file"
And I wait "10" seconds
And I uncheck "uploadcsv_forcepasswordchange"
And I uncheck "uploadcsv_emailusers"
And I press "uploadcsv_submit"
......
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