Skip to content
Browse files

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

… during signup
  • Loading branch information...
1 parent 5bbf3cb commit 9247265b811ece1318017fddf50f3c723fd164dc @ankitagarwal ankitagarwal committed Mar 1, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 login/signup_form.php
View
3 login/signup_form.php
@@ -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 9247265

Please sign in to comment.
Something went wrong with that request. Please try again.