Pieter-Was that person using the same computer as you? If so, this behavior is expected.
I don't hope so, otherwise we have a serious security issue @ our office.
There has to be something wrong with the session variables or something like that. I wasn't able to check it out at our version. We had to do a memoryupgrade...
Pieter
Check this thread.
Ok, but can you explain me how it comes that I see the email adres of this user?
Because of these lines:
if($username = get_moodle_cookie() ) {
$frm->email = get_field("user", "email", "username", "$username");
}
Last user logged in the system leaves data on moodle cookie. Moodle uses this data to query database for more info, which includes the email address, and fills the form field with it's value.
if($username = get_moodle_cookie() ) {
$frm->email = get_field("user", "email", "username", "$username");
}
Last user logged in the system leaves data on moodle cookie. Moodle uses this data to query database for more info, which includes the email address, and fills the form field with it's value.