Skip to content

Commit

Permalink
Merge branch 'MDL-57361-master' of git://github.com/jleyva/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Mar 7, 2017
2 parents 58f7a83 + 92f5051 commit 58798ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auth/email/classes/external.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ public static function signup_user($username, $password, $firstname, $lastname,
// Validate the data sent.
$data = $params;
$data['email2'] = $data['email'];
// Force policy agreed if a site policy is set. The client is responsible of implementing the interface check.
if (!empty($CFG->sitepolicy)) {
$data['policyagreed'] = 1;
}
unset($data['recaptcharesponse']);
unset($data['customprofilefields']);
// Add profile fields data.
Expand Down

0 comments on commit 58798ec

Please sign in to comment.