Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-25027 Web Service: removed user info(firstname,lastname) truncati…

…on for GUI-WS consistency.

Currently there is no validation on user info (firstname/lastname) in user/editadvanced_form.php
  • Loading branch information...
commit 99b1e292fe2b5a7aa8bd60ef2830d2b7c1aba7a5 1 parent 0dde394
@nebgor nebgor authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 user/externallib.php
View
11 user/externallib.php
@@ -134,13 +134,10 @@ public static function create_users($users) {
throw new invalid_parameter_exception('Invalid theme: '.$user['theme']);
}
- // make sure there is no data loss during truncation
- $truncated = truncate_userinfo($user);
- foreach ($truncated as $key=>$value) {
- if ($truncated[$key] !== $user[$key]) {
- throw new invalid_parameter_exception('Property: '.$key.' is too long: '.$user[$key]);
- }
- }
+ // Start of User info validation.
+ // Lets make sure we validate current user info as handled by current GUI. see user/editadvanced_form.php function validation()
+ // ok, there is no validation currently.
+ // End of user info validation.
$user['confirmed'] = true;
$user['mnethostid'] = $CFG->mnet_localhost_id;
Please sign in to comment.
Something went wrong with that request. Please try again.