Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… during signup
  • Loading branch information...
commit ae3251111c71eb191ccf21e6361846b6519c8bef 1 parent f24a1a7
@ankitagarwal ankitagarwal authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.