MDL-21226 - add 'timecreated' column to user table. During an update, the column will copy the value from 'firstaccess' column. if the account never been access, it will be set to current time of the update.
also, modified the files for signup, add new user, and upload user to initialize the value of timecreated field.
This commit is contained in:
@@ -205,6 +205,7 @@ if ($formdata = $mform->is_cancelled()) {
|
||||
foreach ($line as $key => $value) {
|
||||
if ($value !== '') {
|
||||
$key = $columns[$key];
|
||||
$user->timecreated = time();
|
||||
// password is special field
|
||||
if ($key == 'password') {
|
||||
if ($value !== '') {
|
||||
|
||||
Reference in New Issue
Block a user