Permalink
Browse files

MDL-28998 libraries: Adding validation to customisable profile fields…

… during signup
  • Loading branch information...
1 parent e356fb6 commit 44b4c10a47567ee491d3d2ba064ae142164e7c69 @ankitagarwal ankitagarwal committed Mar 1, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 login/signup_form.php
View
@@ -182,6 +182,9 @@ function validation($data, $files) {
$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;

0 comments on commit 44b4c10

Please sign in to comment.