MDL-28998 libraries: Adding validation to customisable profile fields during signup

This commit is contained in:
Ankit Agarwal
2012-03-09 14:51:29 +08:00
parent e356fb68fd
commit 44b4c10a47
+3
View File
@@ -182,6 +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)
$dataobject = (object)$data;
$errors += profile_validation($dataobject, $files);
return $errors;