MDL-28998 libraries: Using default value of 0 for userid during login
This commit is contained in:
committed by
Sam Hemelryk
parent
a784430288
commit
d22a68bd18
@@ -182,8 +182,9 @@ class login_signup_form extends moodleform {
|
||||
$errors['recaptcha'] = get_string('missingrecaptchachallengefield');
|
||||
}
|
||||
}
|
||||
// Validate customisable profile fields. (profile_validation expects an object as the parameter)
|
||||
// Validate customisable profile fields. (profile_validation expects an object as the parameter with userid set)
|
||||
$dataobject = (object)$data;
|
||||
$dataobject->id = 0;
|
||||
$errors += profile_validation($dataobject, $files);
|
||||
|
||||
return $errors;
|
||||
|
||||
Reference in New Issue
Block a user